-
Notifications
You must be signed in to change notification settings - Fork 268
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
Make row color alternating in the Peers tab optional #307
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concept ACK, thank you for adding this flexibility.
I'm sorry for being picky..! Or a diva... or whatever it is... Just to clarify, I think my preferences are, in order of preference-
|
|
So far we had alternate rows and nobody complained AFAIK. If we add this option I think it should affect all tables, not only peers table. Concept ACK figuring out the scope of appearance settings. Until then NACK, this particular option seems to have no grounds and might lead to similar pull requests. |
I think this is a fantastic first step back to a cleaner UI and it would be even better as a global option in a follow-up. |
I agree with this
Also, this sets a good precedent for continuing to make the GUI user configurable. |
Concept ACK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 081842d
Thanks for adding this option and tidying up the spacing in optionsdialog.ui
If we add this option I think it should affect all tables, not only peers table.
This can be addressed in a follow-up PR.
Start up GUI:
Start | Enable Option |
---|---|
Restart GUI:
Start: Setting Persists ✅ | Disable Option |
---|---|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested ACK 3231689 modulo that it would be nice for the change to occur immediately when checking/unchecking the option and I would squash the last 2 commits.
Wishlist:
- The options dialog opens to the last tab used
- Further options for toggling alternate row coloring in other places (or globally)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 84be484
Tested on Arch Linux Qt 5.15.2
, macOS 11.3 Qt 5.15.2
, and cross-compile to Windows 10
.
Notes on commits:
- ada34cf
- Confirmed that the new indentation is correct
- 217d42b
- 84be484
- Cherry-picking the first two commits then running
clang-format-diff.py
gives me the same diff
- Cherry-picking the first two commits then running
Screenshots:
Start | Enable |
---|---|
Restart | Disable |
---|---|
@@ -6,8 +6,8 @@ | |||
<rect> | |||
<x>0</x> | |||
<y>0</y> | |||
<width>560</width> | |||
<height>440</height> | |||
<width>646</width> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's not really a reason to change the size here. I guess this is a good place to answer a question:
The reason is that successive openings and closings of the optionsdialog.ui
in Qt Designer won't suggest size changes.
PruneSize, // int | ||
DatabaseCache, // int | ||
SpendZeroConfChange, // bool | ||
Listen, // bool | ||
OptionIDRowCount, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit in 217d42b
While here, you could document the type here is int
.
Additionally, if you have to retouch, you could rename the commit from:
gui: Add "Alternating Row Color" settings for the Peers Tab
to:
qt: Add "Alternating Row Color" settings for the Peers Tab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While here, you could document the type here is
int
.
I don't think it is required to document the type of a counter, as it is not an option id.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additionally, if you have to retouch, you could rename the commit from:
gui: Add "Alternating Row Color" settings for the Peers Tab
to:
qt: Add "Alternating Row Color" settings for the Peers Tab
Done in the recent push.
Also NACK. First, alternate rows are added, then an option is added to disable it. Do not start option bloating because of groundless "tastes" of some users. Keep it simple (and unflexible). |
If we don't want to have options for accessibility then ISTM the striping should be removed globally. |
Sad to see this closed. Concept ACK from me. |
This PR:
Screenshot: