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:
+16
-14
@@ -32,18 +32,20 @@ void ZLineEdit::setupStyles() { updateStyles(); }
|
||||
|
||||
void ZLineEdit::updateStyles()
|
||||
{
|
||||
setStyleSheet("QLineEdit { "
|
||||
" border: 2px solid " +
|
||||
qApp->palette().color(QPalette::Midlight).name() +
|
||||
"; "
|
||||
" border-radius: 6px; "
|
||||
" padding: 8px 12px; "
|
||||
" font-size: 14px; "
|
||||
"} "
|
||||
"QLineEdit:focus { "
|
||||
" border: 2px solid " +
|
||||
COLOR_ACCENT_BLUE.name() +
|
||||
"; "
|
||||
" outline: none; "
|
||||
"}");
|
||||
// FIMXE: seg faults if Qt decides to change pallets due to applied
|
||||
// stylesheets
|
||||
// setStyleSheet("QLineEdit { "
|
||||
// " border: 2px solid " +
|
||||
// qApp->palette().color(QPalette::Midlight).name() +
|
||||
// "; "
|
||||
// " border-radius: 6px; "
|
||||
// " padding: 8px 12px; "
|
||||
// " font-size: 14px; "
|
||||
// "} "
|
||||
// "QLineEdit:focus { "
|
||||
// " border: 2px solid " +
|
||||
// COLOR_ACCENT_BLUE.name() +
|
||||
// "; "
|
||||
// " outline: none; "
|
||||
// "}");
|
||||
}
|
||||
Reference in New Issue
Block a user