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

Fixed custom skins, the color does not work on some DLabel's. #191

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Tankonyako
Copy link

SKIN.text_dark does not hook with custom skins.

There was a bug in which this did not work, the entire text was black by default, on different topics. I have a black derma theme, in which this variable is replaced, but it does not work.
Screenshot (fixed): https://i.imgur.com/hNnujQ8.png

…ext_dark.

There was a bug in which this did not work, the entire text was black by default, on different topics. I have a black derma theme, in which this variable is replaced, but it does not work.
Screenshot (fixed):  https://i.imgur.com/hNnujQ8.png
@@ -545,11 +547,12 @@ function xlib.makeslider( t )
pnl.TextArea.selectAll = t.selectall
pnl.Label:SizeToContents()
pnl:SetZPos( t.zpos or 0 )
if t.skin then pnl.Label:SetSkin( t.skin ) end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if t.skin then pnl.Label:SetSkin( t.skin ) end
if t.skin then pnl:SetSkin( t.skin ) end

Applying a skin should take effect on the whole slider. This should also set the skin of the label, right? (it's been a while for me lol)

@SticklyMan
Copy link
Member

Would you mind linking the SKIN you're using to test this? The ones I have for testing don't seem to handle text_dark correctly anyways, and I can't find any real great documentation for derma color conventions either.

@Tankonyako
Copy link
Author

Tankonyako commented Jul 25, 2021

Would you mind linking the SKIN you're using to test this? The ones I have for testing don't seem to handle text_dark correctly anyways, and I can't find any real great documentation for derma color conventions either.

https://steamcommunity.com/sharedfiles/filedetails/?id=1597409940

@zpetty33
Copy link
Contributor

zpetty33 commented Aug 5, 2022

@SticklyMan - When you get the chance, can you follow up?

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

Successfully merging this pull request may close these issues.

None yet

3 participants