Comments (7)
All asset's source is in this repo (dark.svg and light.svg). The XML nodes even have their id
s set, to be easily identifiable.
from sun-valley-ttk-theme.
How do I get a clean slider? Like the ones without the thumb, "rect5385" doesn't help, but maybe im looking in the wrong place
from sun-valley-ttk-theme.
How do I get a clean slider? Like the ones without the thumb
I'm not exactly sure what you mean by "clean slider", but in the source SVG the thumb and the through are separate objects.
from sun-valley-ttk-theme.
the one shown on the bottom right here, without the thumb, in Azure TTK you can use a style but im not sure if its the same here
from sun-valley-ttk-theme.
Ah, I got it! So basically you want something like the Tick.TScale
.
For that you can basically just copy the code from the azure ttk theme, create your custom "tick" thumb SVG, and re-build the compiled PNG spritesheet with spritesheet_generator.js
ttk::style layout Horizontal.Tick.TScale {
Horizontal.TickScale.trough -sticky ew -children {
Horizontal.TickScale.slider -sticky w
}
}
ttk::style layout Vertical.Tick.TScale {
Vertical.TickScale.trough -sticky ns -children {
Vertical.TickScale.slider -sticky n
}
}
[...]
ttk::style element create Horizontal.TickScale.trough image $I(scale-hor) \
-border 5 -padding 0
ttk::style element create Horizontal.TickScale.slider \
image [list $I(tick-hor-accent) \
disabled $I(tick-hor-basic) \
pressed $I(tick-hor-hover) \
active $I(tick-hor-hover) \
] -sticky {}
ttk::style element create Vertical.TickScale.trough image $I(scale-vert) \
-border 5 -padding 0
ttk::style element create Vertical.TickScale.slider \
image [list $I(tick-vert-accent) \
disabled $I(tick-vert-basic) \
pressed $I(tick-vert-hover) \
active $I(tick-vert-hover) \
] -sticky {}
from sun-valley-ttk-theme.
Alright, is there not a way to do it just as the pure python code like with the checkbox? Did you do this for the PNG I uploaded before?
from sun-valley-ttk-theme.
Alright, is there not a way to do it just as the pure python code like with the checkbox?
No. Every element is built in Tcl code using PNG images.
from sun-valley-ttk-theme.
Related Issues (20)
- Optimize tile sizes for Windows and macOS
- Remove `set_theme` function hack
- Improve font detection
- Menubar colour HOT 1
- Remove four black dots at the corners of the button HOT 4
- How to add the switch?? HOT 1
- Problem withdraw() deiconify()
- Make a script to export individual SVGs HOT 6
- Tcl App: `unknown color name "$colors(-selfg)"` HOT 3
- How do I modify this? HOT 1
- Open frame destroy frame and apply the theme HOT 6
- Theme/style not applied to Toplevel Widget HOT 2
- Remove the thin line in the Entry?
- Fluent design? HOT 4
- pyinstaller error
- Combobox selection error HOT 6
- Can't change foreground color of `ttk.Label` HOT 3
- tkcalendar breaks when you apply the sun valley theme HOT 1
- tkinter.Text and tkinter.scrolledtext.ScrolledText are indistinguishable from the background
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sun-valley-ttk-theme.