Skip to content

Commit 1128ff6

Browse files
Custom resolution support has been canceled.
1 parent 6663522 commit 1128ff6

File tree

2 files changed

+1
-52
lines changed

2 files changed

+1
-52
lines changed

Settings/settings.ini

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,49 +7,27 @@ userlang = en
77
[Settings]
88
xsupportforresizability = False
99
ysupportforresizability = False
10-
customresolutionsupport = False
11-
customresolution = False
12-
customresolutionx = 0
13-
customresolutiony = 0
1410

1511
[MainMenu]
1612
xsupportforresizability = False
1713
ysupportforresizability = False
18-
customresolutionsupport = False
19-
customresolutionx = 0
20-
customresolutiony = 0
2114

2215
[About]
2316
xsupportforresizability = False
2417
ysupportforresizability = False
25-
customresolutionsupport = False
26-
customresolutionx = 0
27-
customresolutiony = 0
2818

2919
[ShutdownPC]
3020
xsupportforresizability = False
3121
ysupportforresizability = False
32-
customresolutionsupport = False
33-
customresolutionx = 0
34-
customresolutiony = 0
3522

3623
[SysRequirements]
3724
xsupportforresizability = False
3825
ysupportforresizability = False
39-
customresolutionsupport = False
40-
customresolutionx = 0
41-
customresolutiony = 0
4226

4327
[SystemClean]
4428
xsupportforresizability = False
4529
ysupportforresizability = False
46-
customresolutionsupport = False
47-
customresolutionx = 0
48-
customresolutiony = 0
4930

5031
[SystemRepair]
5132
xsupportforresizability = False
52-
ysupportforresizability = False
53-
customresolutionsupport = False
54-
customresolutionx = 0
55-
customresolutiony = 0
33+
ysupportforresizability = False

Settings/settings.py

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -63,27 +63,6 @@ def set_resizability(resizability):
6363
config[window_name_y]['ysupportforresizability'] = "False"
6464
with open(CONFIG_PATH, 'w') as configfile:
6565
config.write(configfile)
66-
67-
68-
def set_custom_resolution(custom_resolution):
69-
global userCustomResolution,custom_res_input,custom_res_input_btn
70-
userCustomResolution = custom_resolution
71-
if custom_resolution == "on" or config['Settings']['customresolution'] == "True":
72-
custom_resolution_status.config(text=custom_resolution_status_title+" "+on.lower())
73-
custom_res_input = Text(window, width=15, height=1)
74-
custom_res_input.place(x=5, y=410)
75-
custom_res_input_btn = Button(window, text=custom_res_input_title, bg="#3a3a3a", fg="#dcdcdc", activebackground="#666666", activeforeground="#dcdcdc")
76-
custom_res_input_btn.place(x=140, y=410)
77-
config['Settings']['customresolution'] = "True"
78-
with open(CONFIG_PATH, 'w') as configfile:
79-
config.write(configfile)
80-
elif custom_resolution == "off" or config['Settings']['customresolution'] == "False":
81-
custom_resolution_status.config(text=custom_resolution_status_title+" "+off.lower())
82-
custom_res_input.place_forget()
83-
custom_res_input_btn.place_forget()
84-
config['Settings']['customresolution'] = "False"
85-
with open(CONFIG_PATH, 'w') as configfile:
86-
config.write(configfile)
8766

8867
def close(event=None):
8968
window.destroy()
@@ -138,14 +117,6 @@ def Settings():
138117
resizability_y_status.place(y=295)
139118
resizability_y_window_name = Entry(window, width=20)
140119
resizability_y_window_name.place(x=100, y=270)
141-
custom_resolution_support = Label(window, text=custom_resolution_support_title, font=("Arial",12,"bold"), bg=label_bg, fg=label_fg)
142-
custom_resolution_support.place(y=325)
143-
custom_resolution_on = Button(window, text=on, bg=button_bg, fg=button_fg, activebackground=button_active_bg, activeforeground=button_active_fg, command=lambda: set_custom_resolution("on"))
144-
custom_resolution_on.place(x=5, y=360)
145-
custom_resolution_off = Button(window, text=off, bg=button_bg, fg=button_fg, activebackground=button_active_bg, activeforeground=button_active_fg, command=lambda: set_custom_resolution("off"))
146-
custom_resolution_off.place(x=40, y=360)
147-
custom_resolution_status = Label(window, text=custom_resolution_status_title, bg=label_bg, fg=label_fg)
148-
custom_resolution_status.place(y=385)
149120
if config['Theme']['usertheme'] == "dark":
150121
theme_status.config(text=theme_status_title+" "+dark_theme_title.lower())
151122
elif config['Theme']['usertheme'] == "light":

0 commit comments

Comments
 (0)