FelixdelasPozas / TrayWeather

Tray Weather is a simple application to retrieve and show weather information for a given geographic location in a small dialog and in the Windows OS system tray.
GNU General Public License v3.0
184 stars 21 forks source link

[Suggestion] Add Fusion style #164

Open adem4ik opened 3 months ago

adem4ik commented 3 months ago

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 commented 3 months ago

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.