Skip to content

Commit 8081001

Browse files
feat: Enhance update notification dialogs with improved styling and layout
1 parent d6e826b commit 8081001

File tree

3 files changed

+341
-52
lines changed

3 files changed

+341
-52
lines changed

src/ui/dark_theme.qss

Lines changed: 182 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,6 +1392,188 @@ QPushButton#lossyRotationProceedButton:pressed {
13921392
background-color: #E67A35;
13931393
}
13941394

1395+
/* --- Update Notification Dialogs --- */
1396+
QDialog#updateNotificationDialog,
1397+
QDialog#updateCheckDialog {
1398+
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
1399+
stop: 0 #2D2D2D, stop: 1 #252525);
1400+
border: 2px solid #0084FF;
1401+
border-radius: 12px;
1402+
}
1403+
1404+
/* Update Dialog Titles */
1405+
QLabel#updateTitle,
1406+
QLabel#checkTitle {
1407+
color: #FFFFFF;
1408+
background-color: transparent;
1409+
font-weight: bold;
1410+
}
1411+
1412+
/* Version Frame */
1413+
QFrame#versionFrame {
1414+
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
1415+
stop: 0 #252525, stop: 1 #202020);
1416+
border: 1px solid #404040;
1417+
border-radius: 8px;
1418+
}
1419+
1420+
QLabel#currentVersionLabel {
1421+
color: #C8C8C8;
1422+
font-size: 11pt;
1423+
background-color: transparent;
1424+
}
1425+
1426+
QLabel#newVersionLabel {
1427+
color: #0084FF;
1428+
font-size: 11pt;
1429+
font-weight: bold;
1430+
background-color: transparent;
1431+
}
1432+
1433+
/* Settings Frame */
1434+
QFrame#settingsFrame {
1435+
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
1436+
stop: 0 #252525, stop: 1 #202020);
1437+
border: 1px solid #404040;
1438+
border-radius: 8px;
1439+
}
1440+
1441+
/* Release Notes Area */
1442+
QTextEdit#releaseNotesArea {
1443+
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
1444+
stop: 0 #2A2A2A, stop: 1 #252525);
1445+
border: 1px solid #404040;
1446+
border-radius: 6px;
1447+
color: #E0E0E0;
1448+
font-size: 10pt;
1449+
padding: 10px;
1450+
}
1451+
1452+
QTextEdit#releaseNotesArea:focus {
1453+
border-color: #0084FF;
1454+
}
1455+
1456+
/* Notes Label */
1457+
QLabel#notesLabel {
1458+
color: #0084FF;
1459+
font-weight: bold;
1460+
background-color: transparent;
1461+
}
1462+
1463+
/* Update Checkbox */
1464+
QCheckBox#updateCheckbox {
1465+
color: #C8C8C8;
1466+
background-color: transparent;
1467+
spacing: 10px;
1468+
font-size: 10pt;
1469+
}
1470+
1471+
QCheckBox#updateCheckbox::indicator {
1472+
width: 18px;
1473+
height: 18px;
1474+
border: 2px solid #404040;
1475+
border-radius: 4px;
1476+
background-color: #2D2D2D;
1477+
}
1478+
1479+
QCheckBox#updateCheckbox::indicator:hover {
1480+
border-color: #505050;
1481+
background-color: #353535;
1482+
}
1483+
1484+
QCheckBox#updateCheckbox::indicator:checked {
1485+
background-color: #0084FF;
1486+
border-color: #005A9E;
1487+
image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTExIDQuNUw1Ljc1IDkuNzVMMy41IDcuNSIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+);
1488+
}
1489+
1490+
/* Dialog Buttons - Smaller sizing */
1491+
QPushButton#laterButton {
1492+
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
1493+
stop: 0 #383838, stop: 1 #303030);
1494+
color: #E0E0E0;
1495+
border: 1px solid #484848;
1496+
border-radius: 6px;
1497+
padding: 6px 16px;
1498+
font-size: 9pt;
1499+
font-weight: 500;
1500+
min-width: 70px;
1501+
min-height: 28px;
1502+
}
1503+
1504+
QPushButton#laterButton:hover {
1505+
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
1506+
stop: 0 #454545, stop: 1 #3C3C3C);
1507+
border-color: #555555;
1508+
color: #FFFFFF;
1509+
}
1510+
1511+
QPushButton#laterButton:pressed {
1512+
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
1513+
stop: 0 #282828, stop: 1 #202020);
1514+
}
1515+
1516+
QPushButton#downloadButton {
1517+
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
1518+
stop: 0 #0084FF, stop: 1 #0066CC);
1519+
color: #FFFFFF;
1520+
border: 1px solid #005A9E;
1521+
border-radius: 6px;
1522+
padding: 6px 20px;
1523+
font-size: 9pt;
1524+
font-weight: bold;
1525+
min-width: 120px;
1526+
min-height: 28px;
1527+
}
1528+
1529+
QPushButton#downloadButton:hover {
1530+
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
1531+
stop: 0 #0094FF, stop: 1 #0074DD);
1532+
border-color: #0084FF;
1533+
}
1534+
1535+
QPushButton#downloadButton:pressed {
1536+
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
1537+
stop: 0 #0066CC, stop: 1 #0052AA);
1538+
}
1539+
1540+
QPushButton#checkCloseButton {
1541+
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
1542+
stop: 0 #0084FF, stop: 1 #0066CC);
1543+
color: #FFFFFF;
1544+
border: 1px solid #005A9E;
1545+
border-radius: 6px;
1546+
padding: 6px 16px;
1547+
font-size: 9pt;
1548+
font-weight: 500;
1549+
min-width: 60px;
1550+
min-height: 28px;
1551+
}
1552+
1553+
QPushButton#checkCloseButton:hover {
1554+
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
1555+
stop: 0 #0094FF, stop: 1 #0074DD);
1556+
}
1557+
1558+
QPushButton#checkCloseButton:pressed {
1559+
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
1560+
stop: 0 #0066CC, stop: 1 #0052AA);
1561+
}
1562+
1563+
QPushButton#checkCloseButton:disabled {
1564+
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
1565+
stop: 0 #383838, stop: 1 #303030);
1566+
color: #666666;
1567+
border-color: #484848;
1568+
}
1569+
1570+
/* Status Label */
1571+
QLabel#statusLabel {
1572+
color: #C8C8C8;
1573+
font-size: 11pt;
1574+
background-color: transparent;
1575+
}
1576+
13951577
/* --- Default Message Boxes --- */
13961578
QMessageBox {
13971579
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,

0 commit comments

Comments
 (0)