-
Notifications
You must be signed in to change notification settings - Fork 4
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
[FR] indicator when scroll is locked #10
Comments
This is briefly documented:
Yes, that makes sense. I think the Textual framework recently introduced a way to implement that. I will have a look at it. |
Oops, yeah it might be time for me to read your entire docs now that I'm using moulti regularly. |
I think I would have noticed the color changing if it weren't green. Orange or Red or Yellow would jump out more since in my Ansible output, almost everything looks green |
I am notoriously bad at picking suitable colors, so I am willing to change it if you can suggest a better alternative. In the meantime, you can customise this color through Textual CSS:
|
Actually, there is a technical limitation -- I am confident it will be solved at some point in the future but in the meantime, @huyz: did my previous comment help re: the scrollbar color? |
@xavierog Yes, colors help. I'm still testing but here's what I'm playing with: $step_default: #64B5F6;
$step_success: #C5E1A5;
$step_warning: #FFD54F;
$step_error: #E57373;
AbstractStep {
background: $step_default;
&.success { background: $step_success; }
&.warning { background: $step_warning; }
&.error { background: $step_error; }
}
$scrollbar_custom_color: #AB47BC;
StepContainer.prevent_programmatic_scrolling {
scrollbar-color: $scrollbar_custom_color;
scrollbar-color-active: $scrollbar_custom_color;
scrollbar-color-hover: $scrollbar_custom_color;
} |
Textual 0.76 removed that limitation, so this issue can be reopened. |
@huyz: this has been fixed in the |
Strange, it doesn't seem to work for me. It stays at |
Can you ensure you run Moulti along with Textual 0.76.0? I have bumped the requirements from 0.53.0 to 0.76.0. |
Ah yes, my bad. It works! |
Fixed in 1.15.0. |
Right now, I can't tell if the scroll is locked or not.
Also, when scroll is locked, the bottom menu still stays
l Lock scroll
for some time. I guess it would be better if it saidl Unlock scroll
The text was updated successfully, but these errors were encountered: