@@ -65,22 +65,6 @@ def __init__(self, *args, **kwargs):
65
65
66
66
if self .settings ["maximized" ]:
67
67
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 )
84
68
85
69
self .switch_04 = Gtk .Switch .new ()
86
70
if self .settings ["show-notification-icon" ]:
@@ -585,15 +569,6 @@ def advanced(self):
585
569
self .abox .set_selection_mode (mode = Gtk .SelectionMode .NONE )
586
570
self .abox .add_css_class ('boxed-list' )
587
571
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 )
597
572
598
573
# Adw.ActionRow - show vertical countdown timer text
599
574
@@ -997,7 +972,7 @@ def set_text_of_notification(self, timer_name, timer_icon, time_text):
997
972
## Play beep after finished timer
998
973
def play_beep (self ):
999
974
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" )
1001
976
else :
1002
977
pass
1003
978
@@ -1051,24 +1026,6 @@ def on_notification_button_clicked(self, widget, *args):
1051
1026
def on_advButton_clicked (self , widget , * args ):
1052
1027
self .advanced ()
1053
1028
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
-
1072
1029
# Action after closing Timer window
1073
1030
none = ""
1074
1031
def close_action (self , w , none ):
@@ -1101,8 +1058,6 @@ def close_action(self, w, none):
1101
1058
1102
1059
self .settings ["window-size" ] = (width , height )
1103
1060
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 ()
1106
1061
try :
1107
1062
self .settings ["play-beep" ] = self .switch_03 .get_active ()
1108
1063
except AttributeError :
@@ -1196,9 +1151,9 @@ def new_window(self, action, param):
1196
1151
def on_about_action (self , action , param ):
1197
1152
dialog = Adw .AboutDialog ()
1198
1153
dialog .set_application_name (jT ["timer_title" ])
1199
- dialog .set_version ("3.4.3 " )
1154
+ dialog .set_version ("3.5 " )
1200
1155
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>" )
1202
1157
dialog .set_license_type (Gtk .License (Gtk .License .GPL_3_0 ))
1203
1158
dialog .set_website ("https://github.com/vikdevelop/timer" )
1204
1159
dialog .set_issue_url ("https://github.com/vikdevelop/timer/issues" )
0 commit comments