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

Some scrollbar color styles have no effect #1479

Closed
rodrigogiraoserrao opened this issue Jan 4, 2023 · 2 comments · Fixed by #1480
Closed

Some scrollbar color styles have no effect #1479

rodrigogiraoserrao opened this issue Jan 4, 2023 · 2 comments · Fixed by #1480

Comments

@rodrigogiraoserrao
Copy link
Contributor

The rules scrollbar_background_active and scrollbar_color_hover do not affect the way a scrollbar looks like.

Run the app below and notice that you can't make the scrollbar background red when you drag it, nor can you turn the thumb pink when you hover it.

from textual.app import App
from textual.widgets import Label

TEXT = """I must not fear.
Fear is the mind-killer.
Fear is the little-death that brings total obliteration.
I will face my fear.
I will permit it to pass over me and through me.
And when it has gone past, I will turn the inner eye to see its path.
Where the fear has gone there will be nothing. Only I will remain.
"""

_CSS = """
Screen {
    scrollbar-background-active: red;
    scrollbar-background-hover: purple;
    scrollbar-color-active: yellow;
    scrollbar-color-hover: pink;
}
"""

class ScrollbarActiveApp(App):
    CSS = _CSS
    def compose(self):
        yield Label(TEXT * 10)
@github-actions
Copy link

github-actions bot commented Jan 4, 2023

Thank you for your issue. Give us a little time to review it.

PS. You might want to check the FAQ if you haven't done so already.

This is an automated reply, generated by FAQtory

rodrigogiraoserrao added a commit that referenced this issue Jan 4, 2023
@rodrigogiraoserrao rodrigogiraoserrao linked a pull request Jan 4, 2023 that will close this issue
2 tasks
@github-actions
Copy link

github-actions bot commented Jan 6, 2023

Don't forget to star the repository!

Follow @textualizeio for Textual updates.

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 a pull request may close this issue.

1 participant