@@ -18,10 +18,9 @@ use crate::notifications::types::notifications::{
1818} ;
1919use crate :: notifications:: types:: sound:: Sound ;
2020use crate :: translations:: translations:: {
21- bytes_threshold_translation, favorite_notification_translation,
22- notifications_title_translation, packets_threshold_translation, per_second_translation,
23- settings_translation, sound_translation, specify_multiples_translation, threshold_translation,
24- volume_translation,
21+ bytes_exceeded_translation, favorite_transmitted_translation, notifications_title_translation,
22+ packets_exceeded_translation, per_second_translation, settings_translation, sound_translation,
23+ threshold_translation, volume_translation,
2524} ;
2625use crate :: utils:: types:: icon:: Icon ;
2726use crate :: { ConfigSettings , Language , Sniffer , StyleType } ;
@@ -101,7 +100,7 @@ fn get_packets_notify<'a>(
101100 font : Font ,
102101) -> Column < ' a , Message , StyleType > {
103102 let checkbox = Checkbox :: new (
104- packets_threshold_translation ( language) ,
103+ packets_exceeded_translation ( language) ,
105104 packets_notification. threshold . is_some ( ) ,
106105 )
107106 . on_toggle ( move |toggled| {
@@ -154,7 +153,7 @@ fn get_bytes_notify<'a>(
154153 font : Font ,
155154) -> Column < ' a , Message , StyleType > {
156155 let checkbox = Checkbox :: new (
157- bytes_threshold_translation ( language) ,
156+ bytes_exceeded_translation ( language) ,
158157 bytes_notification. threshold . is_some ( ) ,
159158 )
160159 . on_toggle ( move |toggled| {
@@ -207,7 +206,7 @@ fn get_favorite_notify<'a>(
207206 font : Font ,
208207) -> Column < ' a , Message , StyleType > {
209208 let checkbox = Checkbox :: new (
210- favorite_notification_translation ( language) ,
209+ favorite_transmitted_translation ( language) ,
211210 favorite_notification. notify_on_favorite ,
212211 )
213212 . on_toggle ( move |toggled| {
@@ -299,11 +298,6 @@ fn input_group_bytes<'a>(
299298 font : Font ,
300299 language : Language ,
301300) -> Container < ' a , Message , StyleType > {
302- let info_str = format ! (
303- "{}; {}" ,
304- per_second_translation( language) ,
305- specify_multiples_translation( language)
306- ) ;
307301 let mut curr_threshold_str = ( bytes_notification. threshold . unwrap_or_default ( )
308302 / bytes_notification. byte_multiple . multiplier ( ) )
309303 . to_string ( ) ;
@@ -331,7 +325,7 @@ fn input_group_bytes<'a>(
331325 . width ( 100 ) ,
332326 )
333327 . push (
334- Text :: new ( info_str )
328+ Text :: new ( per_second_translation ( language ) )
335329 . font ( font)
336330 . align_y ( Alignment :: Center )
337331 . size ( FONT_SIZE_FOOTER ) ,
@@ -353,6 +347,7 @@ fn volume_slider<'a>(
353347 . push ( Text :: new ( format ! ( "{}: {volume:^3}%" , volume_translation( language) ) ) . font ( font) )
354348 . push (
355349 Row :: new ( )
350+ . align_y ( Alignment :: Center )
356351 . push (
357352 Icon :: AudioMute
358353 . to_text ( )
0 commit comments