@@ -65,22 +65,6 @@ def __init__(self, *args, **kwargs):
6565
6666 if self .settings ["maximized" ]:
6767 self .maximize ()
68-
69- if self .settings ["resizable" ] == False :
70- self .set_resizable (False )
71-
72- # Gtk switches
73- self .switch_01 = Gtk .Switch .new ()
74- if self .settings ["dark-theme" ]:
75- self .switch_01 .set_active (True )
76- self .switch_01 .set_valign (align = Gtk .Align .CENTER )
77- self .switch_01 .connect ('notify::active' , self .on_switch_01_toggled )
78-
79- self .switch_02 = Gtk .Switch .new ()
80- if self .settings ["resizable" ]:
81- self .switch_02 .set_active (True )
82- self .switch_02 .set_valign (align = Gtk .Align .CENTER )
83- self .switch_02 .connect ('notify::active' , self .on_switch_02_toggled )
8468
8569 self .switch_04 = Gtk .Switch .new ()
8670 if self .settings ["show-notification-icon" ]:
@@ -585,15 +569,6 @@ def advanced(self):
585569 self .abox .set_selection_mode (mode = Gtk .SelectionMode .NONE )
586570 self .abox .add_css_class ('boxed-list' )
587571 self .mainBox .append (self .abox )
588- # Adw ActionRow - Resizable of Window configuration
589-
590- ## Adw.ActionRow
591- self .adw_action_row_window = Adw .ActionRow .new ()
592- self .adw_action_row_window .add_prefix (Gtk .Image .new_from_icon_name ('window-maximize-symbolic' ))
593- self .adw_action_row_window .set_title (title = jT ["resizable_of_window" ])
594- self .adw_action_row_window .add_suffix (widget = self .switch_02 )
595- self .adw_action_row_window .set_activatable_widget (widget = self .switch_02 )
596- self .abox .append (self .adw_action_row_window )
597572
598573 # Adw.ActionRow - show vertical countdown timer text
599574
@@ -997,7 +972,7 @@ def set_text_of_notification(self, timer_name, timer_icon, time_text):
997972 ## Play beep after finished timer
998973 def play_beep (self ):
999974 if self .switch_03 .get_active () == True :
1000- os .popen ("ffplay -nodisp -autoexit /app/share /beeps/Oxygen.ogg > /dev/null 2>&1" )
975+ os .popen ("ffplay -nodisp -autoexit /app/src /beeps/Oxygen.ogg > /dev/null 2>&1" )
1001976 else :
1002977 pass
1003978
@@ -1051,24 +1026,6 @@ def on_notification_button_clicked(self, widget, *args):
10511026 def on_advButton_clicked (self , widget , * args ):
10521027 self .advanced ()
10531028
1054- ## Save app theme configuration
1055- def on_switch_01_toggled (self , switch01 , GParamBoolean ):
1056- if switch01 .get_active ():
1057- self .style_manager .set_color_scheme (
1058- color_scheme = Adw .ColorScheme .PREFER_DARK
1059- )
1060- else :
1061- self .style_manager .set_color_scheme (
1062- color_scheme = Adw .ColorScheme .FORCE_LIGHT
1063- )
1064-
1065- ## Save resizable window configuration
1066- def on_switch_02_toggled (self , switch02 , GParamBoolean ):
1067- if switch02 .get_active ():
1068- self .set_resizable (True )
1069- else :
1070- self .set_resizable (False )
1071-
10721029 # Action after closing Timer window
10731030 none = ""
10741031 def close_action (self , w , none ):
@@ -1101,8 +1058,6 @@ def close_action(self, w, none):
11011058
11021059 self .settings ["window-size" ] = (width , height )
11031060 self .settings ["maximized" ] = self .is_maximized ()
1104- self .settings ["dark-theme" ] = self .switch_01 .get_active ()
1105- self .settings ["resizable" ] = self .switch_02 .get_active ()
11061061 try :
11071062 self .settings ["play-beep" ] = self .switch_03 .get_active ()
11081063 except AttributeError :
@@ -1196,9 +1151,9 @@ def new_window(self, action, param):
11961151 def on_about_action (self , action , param ):
11971152 dialog = Adw .AboutDialog ()
11981153 dialog .set_application_name (jT ["timer_title" ])
1199- dialog .set_version ("3.4.3 " )
1154+ dialog .set_version ("3.5 " )
12001155 dialog .set_developer_name ("vikdevelop" )
1201- dialog .set_release_notes ("<ul><li>Fixed minor bugs and UI improvements </li></ul>" )
1156+ dialog .set_release_notes ("<ul><li>Added option for selecting custom sound for the alarm clock </li></ul>" )
12021157 dialog .set_license_type (Gtk .License (Gtk .License .GPL_3_0 ))
12031158 dialog .set_website ("https://github.com/vikdevelop/timer" )
12041159 dialog .set_issue_url ("https://github.com/vikdevelop/timer/issues" )
0 commit comments