Skip to content

Commit

Permalink
adjust the sv theme
Browse files Browse the repository at this point in the history
- set log level according to setting on init
  • Loading branch information
Dadangdut33 committed Feb 13, 2023
1 parent fc63d26 commit 720bcaa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions screen_translate/components/window/Settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,7 @@ def onInitOnce(self):
self.fill_theme()
self.init_setting()
self.add_reg_withcheck()
logger.setLevel(fJson.settingCache["log_level"])
self.onStart = False

def fill_theme(self):
Expand Down
10 changes: 5 additions & 5 deletions theme/sv/resource/dark.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ namespace eval ttk::theme::sv_dark {
}
}

ttk::style configure TCheckbutton -padding 2
ttk::style configure TCheckbutton -padding 0

ttk::style element create Checkbutton.indicator image \
[list $I(check-unsel-rest) \
Expand Down Expand Up @@ -250,7 +250,7 @@ namespace eval ttk::theme::sv_dark {
}
}

ttk::style configure TRadiobutton -padding 2
ttk::style configure TRadiobutton -padding 1

ttk::style element create Radiobutton.indicator image \
[list $I(radio-unsel-rest) \
Expand All @@ -269,7 +269,7 @@ namespace eval ttk::theme::sv_dark {

# ----------------------------------------------------------------------------------------
# Entry
ttk::style configure TEntry -foreground $theme_colors(-fg) -padding {1 1 1 1}
ttk::style configure TEntry -foreground $theme_colors(-fg) -padding 0
ttk::style map TEntry -foreground [list disabled "#757575" pressed "#cfcfcf"]

ttk::style element create Entry.field image \
Expand All @@ -292,7 +292,7 @@ namespace eval ttk::theme::sv_dark {
}
}

ttk::style configure TCombobox -foreground $theme_colors(-fg) -padding 1
ttk::style configure TCombobox -foreground $theme_colors(-fg) -padding 0
ttk::style configure ComboboxPopdownFrame -borderwidth 1 -relief solid
ttk::style map TCombobox -foreground [list disabled "#757575" pressed "#cfcfcf"]

Expand Down Expand Up @@ -458,7 +458,7 @@ namespace eval ttk::theme::sv_dark {
[list $I(tab-rest) \
selected $I(tab-selected) \
active $I(tab-hover) \
] -border 13 -padding {16 14 16 6} -height 32
] -border 13 -padding {12 8 12 2} -height 28

# ----------------------------------------------------------------------------------------
# Treeview
Expand Down
10 changes: 5 additions & 5 deletions theme/sv/resource/light.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ namespace eval ttk::theme::sv_light {
}
}

ttk::style configure TCheckbutton -padding 2
ttk::style configure TCheckbutton -padding 0

ttk::style element create Checkbutton.indicator image \
[list $I(check-unsel-rest) \
Expand Down Expand Up @@ -249,7 +249,7 @@ namespace eval ttk::theme::sv_light {
}
}

ttk::style configure TRadiobutton -padding 2
ttk::style configure TRadiobutton -padding 1

ttk::style element create Radiobutton.indicator image \
[list $I(radio-unsel-rest) \
Expand All @@ -268,7 +268,7 @@ namespace eval ttk::theme::sv_light {

# ----------------------------------------------------------------------------------------
# Entry
ttk::style configure TEntry -foreground $theme_colors(-fg) -padding {1 1 1 1}
ttk::style configure TEntry -foreground $theme_colors(-fg) -padding 0
ttk::style map TEntry -foreground [list disabled "#0a0a0a" pressed "#636363" active "#626262"]

ttk::style element create Entry.field image \
Expand All @@ -291,7 +291,7 @@ namespace eval ttk::theme::sv_light {
}
}

ttk::style configure TCombobox -foreground $theme_colors(-fg) -padding 1
ttk::style configure TCombobox -foreground $theme_colors(-fg) -padding 0
ttk::style configure ComboboxPopdownFrame -borderwidth 1 -relief solid
ttk::style map TCombobox -foreground [list disabled "#0a0a0a" pressed "#636363" active "#626262"]

Expand Down Expand Up @@ -456,7 +456,7 @@ namespace eval ttk::theme::sv_light {
[list $I(tab-rest) \
selected $I(tab-selected) \
active $I(tab-hover) \
] -border 13 -padding {16 14 16 6} -height 32
] -border 13 -padding {12 8 12 2} -height 28

# ----------------------------------------------------------------------------------------
# Treeview
Expand Down

0 comments on commit 720bcaa

Please sign in to comment.