Skip to content

Conversation

@xdustinface
Copy link

@xdustinface xdustinface commented Jun 26, 2020

This PR ist part of a series of +-25 PRs related to UI redesigns. Its ancestor is #3572, its successor is #3574. I did not screenshot every single PR and its changes, instead i made "walk through all screen" videos with the result of this PR series and also with the 0.15 UI. If there are any concrete screenshots wanted, just let me know. To build with the full set of changes you can build from the branch xdustinface:pr-ui-redesign which always contains all changes.

-> Walk through 0.15
-> Walk through Redesign

I tried to give the commits enough text to make things obvious without a lot description for each PR. Also here, if you want more description for this specific PR, let me know.

About this PR

This PR adds main menu icons to the list of icons affected by "PlatformStyle -> imagesOnButtons". It also disables any of the PlatformStyle related changes. I would propose to remove PlatformStyle code from the codebase and replace it with some new "ThemeManager" implementation. I would take this in the future if we agree on that. Reason why i disabled them is mostly personal pferecence.. for me having those icons in the menu and on buttons looks a bit outdated and on top i would say our icon set has too wildly mixed colors and icon styles which give a weird look. I feel/hope i will find supporter for this? :D

@xdustinface xdustinface force-pushed the pr-ui-20-platformstyle branch 2 times, most recently from f220f1a to 906f5da Compare June 27, 2020 20:24
@xdustinface xdustinface marked this pull request as draft June 30, 2020 20:25
@xdustinface xdustinface force-pushed the pr-ui-20-platformstyle branch from 906f5da to 4e14429 Compare July 17, 2020 14:13
@xdustinface
Copy link
Author

Ready for review!

This are some of the icons affected by this change.

icons2

icons

@xdustinface xdustinface marked this pull request as ready for review July 17, 2020 14:18
@PastaPastaPasta PastaPastaPasta self-requested a review July 18, 2020 20:41
Copy link
Member

@PastaPastaPasta PastaPastaPasta left a comment

Choose a reason for hiding this comment

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

Well, testing it, it does what you say. However, I'm not sure if removing these icons is the best. Maybe input from suba here? Not sure devs are the best to make that call. Maybe we just need new icons?

@xdustinface
Copy link
Author

@PastaPastaPasta I will ask suba what he thinks about removing them + im anyway currently waiting on a new icon set by him which will be added by #3574 then and we could potentially enable those again as menu icons if it looks good but i still think we should evaluate if it really makes sense to have icons in there or if this is just some "we keep it from the old days" thing? I have really not a lot applications in my windows/linux VMs but the ones i looked at did not have any icons in there. Do you have any?

@UdjinM6
Copy link

UdjinM6 commented Jul 19, 2020

These changes contradict each other imo. There is no reason to use platformStyle->Icon() if you disable platform styles completely and it always translates to QIcon().

@xdustinface
Copy link
Author

Yeah thats true, the reason i didn't just put an QIcon() there in just to have the option to turn them on again in case with the platform styles without a lot changes required. But if we agree on just removing them im totally open to just put an QIcon() instead.

@xdustinface
Copy link
Author

Ok so suba confirmed its ok to remove the icons there. @PastaPastaPasta @UdjinM6 what are your thoughts? Also let me know what you think (in case we decide to remove them) regarding the platformStyle->Icon() removal and with it the cleaning up of the rest. I would just remove all calls of setIcon from the diff and just create the QActions without icons.

@UdjinM6
Copy link

UdjinM6 commented Jul 21, 2020

I'm fine with dropping these icons and setIcon calls. But then we can just drop the whole PlatformStyle thing completely (instead of disabling it) because it's not going to be used for anything after that.

@xdustinface xdustinface changed the title qt: Disable PlatformStyle adjustments qt: Drop PlatformStyle Jul 22, 2020
@xdustinface
Copy link
Author

xdustinface commented Jul 22, 2020

@UdjinM6 Im fine with dropping it, done in ade639c <- Before rebase on develop 88c0da0! I guess that also means doors are opened to later add the "theme/appearance manager" thing i was talking about to clean all that new UI stuff up a bit and move it out of GUIUtil?

Now icons are disabled everywhere if imagesOnButtons is disabled. There were still buttons on each menu item.
@xdustinface xdustinface force-pushed the pr-ui-20-platformstyle branch from ade639c to 88c0da0 Compare July 22, 2020 01:41
Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

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

See below + I'm pretty sure we have a bunch of unused icons now, might want to drop them too

@xdustinface
Copy link
Author

Are we good with dropping the unused icons in #3574 which will anyway contain a update to all used icons?

@UdjinM6
Copy link

UdjinM6 commented Jul 22, 2020

Yes, I guess it makes sense to update/drop them all in one place, good idea.

@UdjinM6 UdjinM6 added this to the 17 milestone Jul 22, 2020
Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

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

ACK

Copy link
Member

@PastaPastaPasta PastaPastaPasta left a comment

Choose a reason for hiding this comment

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

utACK

@UdjinM6 UdjinM6 merged commit 63355db into dashpay:develop Jul 26, 2020
xdustinface added a commit to xdustinface/dash that referenced this pull request Jul 28, 2020
* qt: Add PlatformStyle::Icon + only show icons on menu if enabled

Now icons are disabled everywhere if imagesOnButtons is disabled. There were still buttons on each menu item.

* qt: Disable all PlatformStyle related changes

* qt: Drop PlatformStyle
xdustinface added a commit to xdustinface/dash that referenced this pull request Sep 1, 2020
* qt: Add PlatformStyle::Icon + only show icons on menu if enabled

Now icons are disabled everywhere if imagesOnButtons is disabled. There were still buttons on each menu item.

* qt: Disable all PlatformStyle related changes

* qt: Drop PlatformStyle
xdustinface added a commit to xdustinface/dash that referenced this pull request Sep 1, 2020
* qt: Add PlatformStyle::Icon + only show icons on menu if enabled

Now icons are disabled everywhere if imagesOnButtons is disabled. There were still buttons on each menu item.

* qt: Disable all PlatformStyle related changes

* qt: Drop PlatformStyle
gades pushed a commit to cosanta/cosanta-core that referenced this pull request Mar 3, 2022
* qt: Add PlatformStyle::Icon + only show icons on menu if enabled

Now icons are disabled everywhere if imagesOnButtons is disabled. There were still buttons on each menu item.

* qt: Disable all PlatformStyle related changes

* qt: Drop PlatformStyle
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.

3 participants