mirror of
https://github.com/iDescriptor/iDescriptor.git
synced 2026-06-22 03:45:51 +08:00
refactor(ui): add WinUI stylesheet for Windows
- Introduced WinToolWidget for custom window management on Windows. - Implemented backdrop type settings for Windows in SettingsManager. - Enhanced SettingsWidget to allow selection of backdrop type. - Improved status balloon and toolbox widget styles for Windows. - Refined tab widget animations and styles for better visual feedback. - Fixed issues with loading and error widgets in ZLoadingWidget. - Updated welcome widget to support custom hyperlink colors. - General code cleanup and style adjustments across multiple files.
This commit is contained in:
@@ -475,4 +475,18 @@ QMap<QString, QString> SettingsManager::getAllIdeviceDefaultPairingFiles() const
|
||||
}
|
||||
return macAddresses;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
void SettingsManager::setWinBackdropType(WIN_BACKDROP type)
|
||||
{
|
||||
m_settings->setValue("winBackdropType", static_cast<int>(type));
|
||||
m_settings->sync();
|
||||
}
|
||||
|
||||
WIN_BACKDROP SettingsManager::winBackdropType() const
|
||||
{
|
||||
return static_cast<WIN_BACKDROP>(
|
||||
m_settings->value("winBackdropType", static_cast<int>(MICA)).toInt());
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user