Skip to content

Commit a22ab0b

Browse files
committed
layout & themes fixes
1 parent 5ec2136 commit a22ab0b

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/dude.py

+7-8
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
CFG_LANG = 'lang'
132132

133133
cfg_defaults={
134-
CFG_THEME:'Vista Light' if windows else 'Clam Light',
134+
CFG_THEME:'Vista' if windows else 'Clam',
135135
CFG_KEY_FULL_CRC:False,
136136
CFG_KEY_SHOW_TOOLTIPS_INFO:True,
137137
CFG_KEY_SHOW_TOOLTIPS_HELP:True,
@@ -616,11 +616,12 @@ def __init__(self,cwd,paths_to_add=None,exclude=None,exclude_regexp=None,norun=N
616616

617617
####################################
618618
self.themes_combos={}
619-
{'Clam Light':('clam',0),'Clam Dark':('clam',1),'Classic Light':('classic',0),'Classic Dark':('classic',1),'Vista Light':('vista',0),'Vista Dark':('vista',0)}
620619

621-
themes_names= [ 'Clam', 'Alt', 'Default', 'Classic']
620+
themes_names= ['Clam', 'Alt']
622621
if windows:
623-
themes_names = ['Vista'] + themes_names
622+
themes_names = ['Vista','Winnative','Xpnative'] + themes_names
623+
else:
624+
themes_names = themes_names + ['Classic','Default']
624625

625626
for name in themes_names:
626627
for darkness,darknesscode in (('',0),('Dark',1)):
@@ -1046,7 +1047,6 @@ def self_folder_tree_yview(*args):
10461047
self_folder_tree_tag_configure = self_folder_tree.tag_configure
10471048

10481049
if black_theme:
1049-
10501050
self_groups_tree_tag_configure(self.NOTAG,foreground='white')
10511051
#self_groups_tree_tag_configure(self.FILE, foreground='white')
10521052
self_groups_tree_tag_configure(self.MARK, foreground='tomato')
@@ -1835,14 +1835,13 @@ def get_settings_dialog(self):
18351835
self.lang_cb.grid(row=0, column=1, sticky='news',padx=4,pady=4)
18361836

18371837

1838-
Label(lang_frame,text=STR('Theme:'),anchor='w').grid(row=0, column=2, sticky='wens',padx=8,pady=4)
1838+
Label(lang_frame,text=STR('Theme:'),anchor='w').grid(row=0, column=3, sticky='wens',padx=8,pady=4)
18391839
self.theme_var = StringVar()
18401840

18411841
self.theme_cb = Combobox(lang_frame,values=list(self.themes_combos.keys()),textvariable=self.theme_var,state='readonly',width=16)
1842-
self.theme_cb.grid(row=0, column=3, sticky='news',padx=4,pady=4)
1842+
self.theme_cb.grid(row=0, column=4, sticky='news',padx=4,pady=4)
18431843

18441844
lang_frame.grid_columnconfigure( 2, weight=1)
1845-
lang_frame.grid_columnconfigure( 4, weight=1)
18461845

18471846
label_frame=LabelFrame(self.settings_dialog.area_main, text=STR("Results display mode"),borderwidth=2,bg=self.bg_color)
18481847
label_frame.grid(row=row,column=0,sticky='wens',padx=3,pady=3) ; row+=1

0 commit comments

Comments
 (0)