GithubHelp home page GithubHelp logo

Comments (7)

rdbende avatar rdbende commented on June 8, 2024

All asset's source is in this repo (dark.svg and light.svg). The XML nodes even have their ids set, to be easily identifiable.

from sun-valley-ttk-theme.

GogleSiteBank avatar GogleSiteBank commented on June 8, 2024

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.

rdbende avatar rdbende commented on June 8, 2024

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.

GogleSiteBank avatar GogleSiteBank commented on June 8, 2024

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
screenshot

from sun-valley-ttk-theme.

rdbende avatar rdbende commented on June 8, 2024

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.

GogleSiteBank avatar GogleSiteBank commented on June 8, 2024

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.

rdbende avatar rdbende commented on June 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.