Giter VIP home page Giter VIP logo

Comments (4)

SamCarlberg avatar SamCarlberg commented on July 22, 2024

I think this is a glitch with toggle sliders in general; it also happens with the playback "loop" slider

from shuffleboard.

SamCarlberg avatar SamCarlberg commented on July 22, 2024

I've determined the culprit (but not the underlying cause).

api/src/main/resources/edu/wpi/first/shuffleboard/api/base.css

.tile {
    -fx-font-size: 11pt;
}

I can confirm the following behavior:

Font size Correct behavior?
9pt
10pt
11pt
12pt
13pt
14pt
15pt
16pt
17pt
18pt
19pt
20pt
21pt

Seems like it works in 3pt-increments? This is also definitely interacting weirdly with something else in the stylesheets (either material or base), as these font sizes all work with the default controlsfx stylesheets.

The easiest fix I can think of would to add this to the base stylesheet:

.tile .toggle-switch {
    -fx-font-size: 12pt;
}

but that doesn't fix the problems with toggle switches not in tiles that have their font sizes set, nor does it solve the issue of invisible toggle switches in tile property sheets

from shuffleboard.

nightpool avatar nightpool commented on July 22, 2024
.toggle-switch {
    -fx-font-size: 12px !important;
}

?

from shuffleboard.

SamCarlberg avatar SamCarlberg commented on July 22, 2024

That would lock all toggle switches to the same size, which I would prefer not to do

from shuffleboard.

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.