Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

How to modify scroll bar color #81

Closed
gooker opened this issue Apr 14, 2021 · 6 comments
Closed

How to modify scroll bar color #81

gooker opened this issue Apr 14, 2021 · 6 comments

Comments

@gooker
Copy link

gooker commented Apr 14, 2021

can't see clearly.

The best SSH client in my heart!!

@kingToolbox
Copy link
Owner

kingToolbox commented Apr 14, 2021

Thank you. Which theme are you using,dige-white? I think the dige-black theme should be fine. If you want to modify the scrollbar color, take the dige-black theme as an example, open windterm-install-path/global/themes/dige-black/gui.theme and find the following to modify:

QAbstractItemView QScrollBar {
  // The background color of the scroll bar in the QAbstractItemView, like list or tree widget
  background-color: #191919; 
}
QScrollBar {
  border: none;
  // The default background color of the scroll bar
  background-color: transparent;  
  margin: 0px 0px 0px 0px;
}
QScrollBar::handle {
  // The default background color of the handle in the scrollbar, which might be what you need.
  // When modifying, please keep the alpha channel to ensure that the color of the mark below is visible 
  background-color: #40c0c0c0;
}
QScrollBar::handle:hover {
  // The default background color of the handle in the scrollbar when the mouse is hovering
  background-color: #40a6a6a6;
}
TextView > QAbstractScrollArea QScrollBar {
  // The background color of the scrollbar in the textview, which might be what you need.
  background-color: #1c1c1c;
  border: none;
  margin: 0px;
}

@kingToolbox
Copy link
Owner

By the way, after the gui.theme is modified, whether you restart WindTerm or switch to another theme and then switch back through the menu View - Color Themes, you can see the effect of the modification, and I would recommend switching themes. 😄

@gooker
Copy link
Author

gooker commented Apr 14, 2021

:)
I like dige-black-and-white ,it's ok.

QScrollBar::handle {
  // The default background color of the handle in the scrollbar, which might be what you need.
  // When modifying, please keep the alpha channel to ensure that the color of the mark below is visible 
  background-color: #900fffff;
}
QScrollBar::handle:hover {
  // The default background color of the handle in the scrollbar when the mouse is hovering
  background-color: #900fffff;
}
TextView > QAbstractScrollArea QScrollBar {
  // The background color of the scrollbar in the textview, which might be what you need.
  background-color: #000000;
  border: none;
  margin: 0px;
}

Thank you. Which theme are you using,dige-white? I think the dige-black theme should be fine. If you want to modify the scrollbar color, take the dige-black theme as an example, open windterm-install-path/global/themes/dige-black/gui.theme and find the following to modify:

QAbstractItemView QScrollBar {
  // The background color of the scroll bar in the QAbstractItemView, like list or tree widget
  background-color: #191919; 
}
QScrollBar {
  border: none;
  // The default background color of the scroll bar
  background-color: transparent;  
  margin: 0px 0px 0px 0px;
}
QScrollBar::handle {
  // The default background color of the handle in the scrollbar, which might be what you need.
  // When modifying, please keep the alpha channel to ensure that the color of the mark below is visible 
  background-color: #40c0c0c0;
}
QScrollBar::handle:hover {
  // The default background color of the handle in the scrollbar when the mouse is hovering
  background-color: #40a6a6a6;
}
TextView > QAbstractScrollArea QScrollBar {
  // The background color of the scrollbar in the textview, which might be what you need.
  background-color: #1c1c1c;
  border: none;
  margin: 0px;
}

@gooker gooker closed this as completed Apr 14, 2021
@kingToolbox
Copy link
Owner

I'm glad you resolved the problem so quickly. I will also deepen the color of the scroll bar in the next version to make it more conspicuous. The next version will add X/Y/Z modem function and the prerelease will be released in these two days, if you like, please download and use, thank you. 😃

@gooker
Copy link
Author

gooker commented Apr 14, 2021

I'm glad you resolved the problem so quickly. I will also deepen the color of the scroll bar in the next version to make it more conspicuous. The next version will add X/Y/Z modem function and the prerelease will be released in these two days, if you like, please download and use, thank you. 😃

That’s awesome, I always use rz & sz;

@kingToolbox
Copy link
Owner

The new version 2.1.0_prerelease_2 has been released, which not only deepens the color of the scroll bar slider, but also supports ZModem, please download and use, thank you.

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

No branches or pull requests

2 participants