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

Amp: Problem with value text size #159

Open
DJViking opened this issue Feb 3, 2019 · 1 comment
Open

Amp: Problem with value text size #159

DJViking opened this issue Feb 3, 2019 · 1 comment

Comments

@DJViking
Copy link

DJViking commented Feb 3, 2019

Problem with the size of the value text (both Amp and PlainAmp).

Without custom CSS root style:
screenshot_20190203_124224

With custom CSS root style:
screenshot_20190203_124158

CSS

.root {
    -fx-font-size: 1em;
}

The Font size 1em is same as default, but setting it in my CSS root style makes the value font very small.
When setting the custom CSS root style the Font is no longer LCD, but STANDARD.

Tried setting custom font, but it does not use it.

.customFontEnabled(true)
.customFont(Font.font("Roboto", 32))

When resizing using the custom CSS the value flickers with the same size as without the custom CSS.

@HanSolo
Copy link
Owner

HanSolo commented Feb 5, 2019

This is because the LCD in the AmpSkin and PlainAmpSkin are simple Labels which have the default style. As soon as you change that it will override the values I set in the skin. You can see that the text will set back to the selected LCDFont when you resize the window with the control.
I will see what I can do here, would like to avoid using CSS at all for Medusa.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants