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

[Suggestion] Add Fusion style #164

Open
adem4ik opened this issue Apr 28, 2024 · 1 comment
Open

[Suggestion] Add Fusion style #164

adem4ik opened this issue Apr 28, 2024 · 1 comment

Comments

@adem4ik
Copy link
Contributor

adem4ik commented Apr 28, 2024

Version: 1.29.0

  1. Start TrayWeather from the command line using the following option:
    .\TrayWeather.exe -style fusion
    изображение

Result: It seems like TrayWeather supports Fusion style out of the box, it just needs GUI setting.

изображение

@FelixdelasPozas
Copy link
Owner

Yes, the Qt library is compiled with the usual styles for Windows (i just looked, they are "Windows", "WindowsXP", "WindowsVista" & "Fusion"). But I certainly prefer Qt to try to use the style that is "closest" to the OS (I like the progress bars and the sliders, Fusion are more "Windows 7" sliders).

I could set the style in main.cpp like this:

59 QApplication app(argc, argv);
60 app.setQuitOnLastWindowClosed(false);
61 app.setStyle(QStyleFactory::create("WindowsXP")); // this one line.

Qt will always allow the user to set the style in the windows arguments, exactly as you described. I think it will confuse users if I put an option in the "Miscellaneous" tab about "GUI style", as they all are very similar.

It could be added as a third option in the "Visual Theme" option (the light UI/dark UI option in Miscellaneous tab) as the dark theme is a complete "reskin" of the widgets, more or less the same thing the "Fusion" theme does.

I'll test if it messes with the UI in some parts. Adding it as a third option costs next to nothing.

Regards,
Félix.

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

No branches or pull requests

2 participants