Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new elements from WinUI 3 #95

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
161 changes: 146 additions & 15 deletions src/light/light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/light/lite-nav-dis.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/light/lite-nav-focus-inactive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/light/lite-nav-focus-ring.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/light/lite-nav-hover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/light/lite-nav-selected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions theme/light.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,39 @@ namespace eval ttk::theme::sv_light {
ttk::style element create Labelframe.border image $I(card) -border 5 -padding 4 -sticky nsew
ttk::style configure TLabelframe.Label -font SunValleyBodyStrongFont -foreground "#676767"

# Pages.TNotebook
ttk::style layout Pages.TNotebook {
Pages.Notebook.border -children {
Pages.TNotebook.Tab -expand 1
}
}

ttk::style layout Pages.TNotebook.Tab {
Pages.Notebook.tab -children {
Pages.Notebook.focus -side top -sticky nswe -children {
Pages.Notebook.padding -side top -sticky nswe -children {
Pages.Notebook.label -side top -sticky {}
}
}
}
}

ttk::style configure Pages.TNotebook -padding 1
ttk::style configure Pages.TNotebook.Tab -focuscolor $theme_colors(-accent)
ttk::style element create Pages.Notebook.border image $I(notebook-border) -border 5 -padding 5

ttk::style element create Pages.Notebook.tab image \
[list $I(empty) \
disabled $I(lite-nav-dis) \
{selected active} $I(lite-nav-hover) \
selected $I(lite-nav-selected) \
] -sticky s -padding {14 8}

ttk::style element create Pages.Notebook.focus image \
[list $I(lite-nav-focus-inactive) \
focus $I(lite-nav-focus-ring) \
] -border 4 -sticky nsew

# Notebook
ttk::style layout TNotebook {
Notebook.border -children {
Expand Down
147 changes: 76 additions & 71 deletions theme/sprites_light.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -16,80 +16,85 @@ set ::spriteinfo [list \
tab-hover 130 0 32 32 \
tab-rest 130 32 32 32 \
tab-selected 120 64 32 32 \
heading-hover 40 100 22 22 \
heading-pressed 62 100 22 22 \
heading-rest 84 100 22 22 \
slider-thumb-dis 106 100 22 22 \
slider-thumb-focus-hover 128 96 22 22 \
slider-thumb-focus 0 130 22 22 \
slider-thumb-hover 22 130 22 22 \
slider-thumb-pressed 44 122 22 22 \
slider-thumb-rest 66 122 22 22 \
slider-trough-hor 88 122 22 22 \
slider-trough-vert 110 122 22 22 \
button-accent-dis 132 118 20 20 \
button-accent-focus-hover 0 152 20 20 \
button-accent-focus 20 152 20 20 \
button-accent-hover 40 152 20 20 \
button-accent-pressed 60 144 20 20 \
button-accent-rest 80 144 20 20 \
button-dis 100 144 20 20 \
button-focus-hover 120 144 20 20 \
button-focus 140 138 20 20 \
button-hover 162 0 20 20 \
button-pressed 162 20 20 20 \
button-rest 162 40 20 20 \
check-dis 162 60 20 20 \
check-focus-hover 150 96 20 20 \
check-focus 152 116 20 20 \
check-hover 160 136 20 20 \
lite-nav-dis 120 96 28 9 \
lite-nav-hover 40 105 28 9 \
lite-nav-selected 40 114 28 9 \
heading-hover 68 105 22 22 \
heading-pressed 90 105 22 22 \
heading-rest 112 105 22 22 \
slider-thumb-dis 134 105 22 22 \
slider-thumb-focus-hover 0 130 22 22 \
slider-thumb-focus 22 130 22 22 \
slider-thumb-hover 44 123 22 22 \
slider-thumb-pressed 66 127 22 22 \
slider-thumb-rest 88 127 22 22 \
slider-trough-hor 110 127 22 22 \
slider-trough-vert 132 127 22 22 \
button-accent-dis 0 152 20 20 \
button-accent-focus-hover 20 152 20 20 \
button-accent-focus 40 152 20 20 \
button-accent-hover 60 149 20 20 \
button-accent-pressed 80 149 20 20 \
button-accent-rest 100 149 20 20 \
button-dis 120 149 20 20 \
button-focus-hover 140 149 20 20 \
button-focus 162 0 20 20 \
button-hover 162 20 20 20 \
button-pressed 162 40 20 20 \
button-rest 162 60 20 20 \
check-dis 154 127 20 20 \
check-focus-hover 160 147 20 20 \
check-focus 152 80 20 20 \
check-hover 156 100 20 20 \
check-pressed 0 172 20 20 \
check-rest 20 172 20 20 \
check-tri-dis 40 172 20 20 \
check-tri-focus-hover 160 156 20 20 \
check-tri-focus 140 158 20 20 \
check-tri-hover 60 164 20 20 \
check-tri-pressed 80 164 20 20 \
check-tri-rest 100 164 20 20 \
check-unsel-dis 120 164 20 20 \
check-unsel-focus-hover 182 0 20 20 \
check-unsel-focus 182 20 20 20 \
check-unsel-hover 182 40 20 20 \
check-unsel-pressed 182 60 20 20 \
check-unsel-rest 180 80 20 20 \
progressbar-bar-hor 180 100 20 5 \
progressbar-bar-vert 172 80 5 20 \
progressbar-trough-hor 152 80 20 5 \
progressbar-trough-vert 172 100 5 20 \
radio-dis 180 105 20 20 \
radio-focus-hover 180 125 20 20 \
radio-focus 180 145 20 20 \
radio-hover 180 165 20 20 \
radio-pressed 160 176 20 20 \
radio-rest 140 178 20 20 \
radio-unsel-dis 0 192 20 20 \
radio-unsel-focus-hover 20 192 20 20 \
radio-unsel-focus 40 192 20 20 \
radio-unsel-hover 180 185 20 20 \
radio-unsel-pressed 60 184 20 20 \
radio-unsel-rest 80 184 20 20 \
scrollbar-thumb-hor 160 196 20 12 \
scrollbar-thumb-vert 100 184 12 20 \
scrollbar-trough-hor 112 198 20 12 \
scrollbar-trough-vert 202 0 12 20 \
textbox-dis 0 212 20 20 \
textbox-error 20 212 20 20 \
textbox-focus 40 212 20 20 \
textbox-hover 60 210 20 20 \
textbox-rest 80 210 20 20 \
check-tri-focus-hover 160 167 20 20 \
check-tri-focus 60 169 20 20 \
check-tri-hover 80 169 20 20 \
check-tri-pressed 100 169 20 20 \
check-tri-rest 120 169 20 20 \
check-unsel-dis 140 169 20 20 \
check-unsel-focus-hover 172 80 20 20 \
check-unsel-focus 182 0 20 20 \
check-unsel-hover 182 20 20 20 \
check-unsel-pressed 182 40 20 20 \
check-unsel-rest 182 60 20 20 \
lite-nav-focus-inactive 180 100 20 20 \
lite-nav-focus-ring 180 120 20 20 \
progressbar-bar-hor 40 100 20 5 \
progressbar-bar-vert 192 80 5 20 \
progressbar-trough-hor 160 187 20 5 \
progressbar-trough-vert 197 80 5 20 \
radio-dis 180 140 20 20 \
radio-focus-hover 180 160 20 20 \
radio-focus 0 192 20 20 \
radio-hover 20 192 20 20 \
radio-pressed 40 192 20 20 \
radio-rest 60 192 20 20 \
radio-unsel-dis 80 192 20 20 \
radio-unsel-focus-hover 100 192 20 20 \
radio-unsel-focus 120 192 20 20 \
radio-unsel-hover 140 189 20 20 \
radio-unsel-pressed 160 192 20 20 \
radio-unsel-rest 180 180 20 20 \
scrollbar-thumb-hor 180 200 20 12 \
scrollbar-thumb-vert 202 0 12 20 \
scrollbar-trough-hor 140 209 20 12 \
scrollbar-trough-vert 202 20 12 20 \
textbox-dis 214 0 20 20 \
textbox-error 214 20 20 20 \
textbox-focus 202 40 20 20 \
textbox-hover 202 60 20 20 \
textbox-rest 202 80 20 20 \
down 40 50 10 5 \
empty 152 64 10 10 \
grip 152 85 10 10 \
right 162 85 5 10 \
sep 202 20 10 10 \
up 40 55 10 5 \
scrollbar-down 132 138 8 6 \
scrollbar-left 44 144 6 8 \
scrollbar-right 50 144 6 8 \
scrollbar-up 172 120 8 6 \
grip 0 212 10 10 \
right 174 120 5 10 \
sep 160 212 10 10 \
up 60 100 10 5 \
scrollbar-down 152 74 8 6 \
scrollbar-left 174 130 6 8 \
scrollbar-right 174 138 6 8 \
scrollbar-up 44 145 8 6 \
]
Binary file modified theme/spritesheet_light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.