Skip to content

Commit c4107a0

Browse files
authored
Mint-X: Add support for cinnamon 6.4 (#487)
* Mint-X: Add support for cinnamon 6.4 * Add support for Audio device selection dialog * remove accidentally added code. * Add dialog-button:destructive-action * fix entry hint-text and password peek icon colours * add class check-box-2 * fix popup menu style changes
1 parent 5bf6eb3 commit c4107a0

File tree

1 file changed

+149
-54
lines changed

1 file changed

+149
-54
lines changed

src/Mint-X/theme/Mint-X/cinnamon/cinnamon.css

Lines changed: 149 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ StScrollBar StButton#vhandle:hover {
123123

124124
.notification-button:focus:hover,
125125
.notification-icon-button:focus:hover,
126-
.modal-dialog-button:focus:hover {
126+
.dialog-button:focus:hover {
127127
border-image: url("button-assets/button-focus-hover.png") 4;
128128
}
129129

@@ -146,19 +146,19 @@ StScrollBar StButton#vhandle:hover {
146146
min-width: 100px;
147147
}
148148

149-
.menu.top {
149+
.menu.menu-top {
150150
border-radius: 0 0 4px 4px;
151151
}
152152

153-
.menu.bottom {
153+
.menu.menu-bottom {
154154
border-radius: 4px 4px 0 0;
155155
}
156156

157-
.menu.left {
157+
.menu.menu-left {
158158
border-radius: 0 4px 4px 0;
159159
}
160160

161-
.menu.right {
161+
.menu.menu-right {
162162
border-radius: 4px 0 0 4px;
163163
}
164164

@@ -1111,54 +1111,67 @@ StScrollBar StButton#vhandle:hover {
11111111
}
11121112

11131113
/* ===================================================================
1114-
* Modal dialogs (modalDialog.js)
1114+
* dialogs (dialog.js)
11151115
* ===================================================================*/
1116-
.modal-dialog {
1116+
.dialog {
11171117
border-image: url("background-assets/bg-1.png") 6;
11181118
color: rgb(70, 70, 70);
11191119
padding: 20px;
11201120
}
11211121

1122-
.modal-dialog-button-box {
1123-
spacing: 110px;
1124-
padding-top: 20px;
1122+
.dialog-button-box {
11251123
}
11261124

1127-
.modal-dialog-button {
1125+
.dialog-button {
11281126
height: 22px;
11291127
color: rgb(70, 70, 70);
11301128
border-image: url("button-assets/button.png") 4;
11311129
padding: 3px 31px 4px;
11321130
}
11331131

1134-
.modal-dialog-button:hover {
1132+
.dialog-button:hover {
11351133
border-image: url("button-assets/button-hover.png") 4;
11361134
}
11371135

1138-
.modal-dialog-button:focus {
1136+
.dialog-button:focus {
11391137
border-image: url("button-assets/button-focus.png") 4;
11401138
padding: 3px 31px 4px;
11411139
}
11421140

1143-
.modal-dialog-button:active,
1144-
.modal-dialog-button:checked {
1141+
.dialog-button:active,
1142+
.dialog-button:checked {
11451143
border-image: url("button-assets/button-pressed.png") 4;
11461144
}
11471145

1148-
.modal-dialog-button:focus:hover {
1146+
.dialog-button:focus:hover {
11491147
border-image: url("button-assets/button-focus-hover.png") 4;
11501148
padding: 3px 31px 4px;
11511149
}
11521150

1153-
.modal-dialog-button:focus:checked,
1154-
.modal-dialog-button:focus:active {
1151+
.dialog-button:focus:checked,
1152+
.dialog-button:focus:active {
11551153
border-image: url("button-assets/button-pressed.png") 4;
11561154
}
11571155

1158-
.modal-dialog-button:disabled {
1156+
.dialog-button:disabled {
11591157
color: #a6a6a6;
11601158
}
11611159

1160+
.dialog-button:destructive-action {
1161+
color: #c21616;
1162+
}
1163+
1164+
.dialog-list .dialog-list-title {
1165+
padding: 1.3em;
1166+
text-align: center;
1167+
color: rgb(70, 70, 70);
1168+
}
1169+
1170+
.dialog-list-item .dialog-list-item-description {
1171+
color: rgb(70, 70, 70);
1172+
}
1173+
1174+
11621175
/* =============================================================================
11631176
* CinnamonMountOperation Dialogs (cinnamonMountOperation.js)
11641177
* ============================================================================= */
@@ -1309,93 +1322,164 @@ StScrollBar StButton#vhandle:hover {
13091322
* Policykit authentication dialog
13101323
* ===================================================================*/
13111324

1312-
.polkit-dialog {
1325+
.prompt-dialog {
13131326
/* this is the width of the entire modal popup */
13141327
width: 500px;
13151328
}
13161329

1317-
.polkit-dialog-main-layout {
1330+
.polkit-dialog-user-layout {
13181331
spacing: 10px;
13191332
}
13201333

1321-
.polkit-dialog-headline {
1322-
text-align: center;
1323-
font-size: 1.3em;
1324-
font-weight: bold;
1325-
color: rgb(70, 70, 70);
1334+
.polkit-dialog-user-layout:rtl {
1335+
padding-right: 10px;
13261336
}
13271337

1328-
.polkit-dialog-description {
1329-
text-align: center;
1330-
font-size: 1em;
1338+
.polkit-dialog-user-combo {
1339+
border-image: url("button-assets/button.png") 4;
1340+
padding: 0.5em 2em;
13311341
color: rgb(70, 70, 70);
13321342
}
13331343

1334-
.polkit-dialog-user-layout {
1335-
spacing: 10px;
1344+
.polkit-dialog-user-combo:hover {
1345+
border-image: url("button-assets/button-hover.png") 4;
13361346
}
13371347

1338-
.polkit-dialog-user-layout:rtl {
1339-
padding-right: 10px;
1348+
.polkit-dialog-user-combo:focus {
1349+
border-image: url("button-assets/button-focus.png") 4;
13401350
}
13411351

1342-
.polkit-dialog-user-root-label {
1343-
color: #ff0000;
1352+
.polkit-dialog-user-combo:active,
1353+
.polkit-dialog-user-combo:checked {
1354+
border-image: url("button-assets/button-pressed.png") 4;
13441355
}
13451356

1346-
.polkit-dialog-password-label:ltr {
1347-
padding-top: 0.5em;
1348-
padding-right: 0.5em;
1357+
.polkit-dialog-user-combo:focus:hover {
1358+
border-image: url("button-assets/button-focus-hover.png") 4;
1359+
padding: 3px 31px 4px;
13491360
}
13501361

1351-
.polkit-dialog-password-label:rtl {
1352-
padding-left: 0.5em;
1362+
.polkit-dialog-user-combo:focus:checked,
1363+
.polkit-dialog-user-combo:active {
1364+
border-image: url("button-assets/button-pressed.png") 4;
13531365
}
13541366

1355-
.polkit-dialog-password-entry {
1367+
.polkit-dialog-user-combo:disabled,
1368+
.polkit-dialog-user-combo:insensitive {
1369+
color: #a6a6a6;
1370+
}
1371+
1372+
.prompt-dialog-password-entry {
13561373
padding: 4px 12px;
13571374
color: #2b2b2b;
13581375
border-image: url("misc-assets/entry.png") 6;
13591376
border-radius: 4px;
13601377
caret-color: #2b2b2b;
13611378
caret-size: 1px;
13621379
width: 250px;
1363-
height: 16px;
13641380
transition-duration: 300;
13651381
selected-color: #fff;
13661382
selection-background-color: #accd8a;
13671383
}
13681384

1369-
.polkit-dialog-password-entry:focus {
1385+
.prompt-dialog-password-entry:focus {
13701386
padding: 4px 12px;
13711387
color: #2b2b2b;
13721388
border-image: url("misc-assets/entry-focus.png") 6;
13731389
border-radius: 4px;
13741390
width: 250px;
1375-
height: 16px;
13761391
selected-color: #fff;
13771392
caret-color: #2b2b2b;
13781393
caret-size: 1px;
13791394
selection-background-color: #accd8a;
13801395
transition-duration: 150;
13811396
}
13821397

1383-
.polkit-dialog-password-entry .capslock-warning {
1398+
.prompt-dialog-password-entry .capslock-warning {
13841399
icon-size: 16px;
13851400
warning-color: rgb(64, 64, 64);
13861401
padding: 0 4px;
13871402
}
13881403

1389-
.polkit-dialog-error-label {
1404+
.prompt-dialog-error-label {
13901405
text-align: center;
13911406
font-size: 1em;
13921407
color: #ff0000;
13931408
}
13941409

1395-
.polkit-dialog-info-label {
1410+
.prompt-dialog-info-label {
13961411
font-size: 1em;
13971412
}
13981413

1414+
.prompt-dialog-password-entry StLabel.hint-text {
1415+
color: rgba(70, 70, 70, 0.4);
1416+
}
1417+
1418+
.prompt-dialog-password-entry StIcon.peek-password {
1419+
icon-size: 16px;
1420+
color: rgb(70, 70, 70);
1421+
}
1422+
1423+
/* ===================================================================
1424+
* Run dialog
1425+
* ===================================================================*/
1426+
1427+
.run-dialog-description {
1428+
text-align: center;
1429+
color: rgb(70, 70, 70);
1430+
}
1431+
1432+
.run-dialog-entry {
1433+
padding: 4px 12px;
1434+
color: #2b2b2b;
1435+
border-image: url("misc-assets/entry.png") 6;
1436+
border-radius: 4px;
1437+
width: 250px;
1438+
min-height: 16px;
1439+
selected-color: #fff;
1440+
caret-color: #2b2b2b;
1441+
caret-size: 1px;
1442+
selection-background-color: #accd8a;
1443+
transition-duration: 150;
1444+
}
1445+
1446+
.run-dialog-entry:focus {
1447+
padding: 4px 12px;
1448+
color: #2b2b2b;
1449+
border-image: url("misc-assets/entry-focus.png") 6;
1450+
border-radius: 4px;
1451+
width: 250px;
1452+
min-height: 16px;
1453+
selected-color: #fff;
1454+
caret-color: #2b2b2b;
1455+
caret-size: 1px;
1456+
selection-background-color: #accd8a;
1457+
transition-duration: 150;
1458+
}
1459+
1460+
/* ###################################################################
1461+
* Audio device selection dialog
1462+
* ###################################################################*/
1463+
1464+
.audio-device-selection-dialog .audio-selection-box .audio-selection-device {
1465+
border-image: url("button-assets/button.png") 4;
1466+
color: rgb(70, 70, 70);
1467+
}
1468+
.audio-device-selection-dialog .audio-selection-box .audio-selection-device:focus {
1469+
border-image: url("button-assets/button-focus.png") 4;
1470+
}
1471+
.audio-device-selection-dialog .audio-selection-box .audio-selection-device:hover {
1472+
border-image: url("button-assets/button-hover.png") 4;
1473+
}
1474+
.audio-device-selection-dialog .audio-selection-box .audio-selection-device:insensitive {
1475+
color: #a6a6a6
1476+
}
1477+
.audio-device-selection-dialog .audio-selection-box .audio-selection-device:selected,
1478+
.audio-device-selection-dialog .audio-selection-box .audio-selection-device:active,
1479+
.audio-device-selection-dialog .audio-selection-box .audio-selection-device:checked {
1480+
border-image: url("button-assets/button-pressed.png") 4;
1481+
}
1482+
13991483
/* ###################################################################
14001484
* Cinnamon Specific Section
14011485
* ###################################################################*/
@@ -1538,6 +1622,9 @@ StScrollBar StButton#vhandle:hover {
15381622
.menu-context-menu {
15391623
}
15401624

1625+
#menu-search-entry StLabel.hint-text {
1626+
color: rgba(70, 70, 70, 0.3);
1627+
}
15411628
/* ===================================================================
15421629
* Window list applet ([email protected]/applet.js)
15431630
* ===================================================================*/
@@ -2166,14 +2253,18 @@ StScrollBar StButton#vhandle:hover {
21662253
}
21672254

21682255
.check-box StBin,
2169-
.check-box:focus StBin {
2256+
.check-box:focus StBin,
2257+
.check-box-2 StBin,
2258+
.check-box-2:focus StBin {
21702259
width: 16px;
21712260
height: 16px;
21722261
background-image: url("control-assets/checkbox-unchecked.png");
21732262
}
21742263

21752264
.check-box:checked StBin,
2176-
.check-box:focus:checked StBin {
2265+
.check-box:focus:checked StBin,
2266+
.check-box-2:checked StBin,
2267+
.check-box-2:focus:checked StBin {
21772268
background-image: url("control-assets/checkbox-checked.png");
21782269
}
21792270

@@ -2246,20 +2337,24 @@ StScrollBar StButton#vhandle:hover {
22462337
font-size: 4em;
22472338
}
22482339

2249-
.osd-window {
2340+
.media-keys-osd {
22502341
border-image: url("background-assets/bg-1.png") 6;
22512342
color: rgb(70, 70, 70);
2343+
margin-bottom: 1em;
22522344
padding: 20px;
22532345
spacing: 1em;
22542346
}
22552347

2256-
.osd-window .level {
2257-
height: 0.7em;
2348+
.media-keys-osd .level {
2349+
min-width: 160px;
2350+
-barlevel-height: 0.7em;
2351+
-barlevel-background-color: rgba(70, 70, 70, 0.4);
2352+
-barlevel-active-background-color: rgb(172, 205, 138);
2353+
-barlevel-amplify-color: rgb(172, 205, 138);
22582354
border-radius: 0.3em;
2259-
background-color: rgba(70, 70, 70, 0.4);
22602355
}
22612356

2262-
.osd-window .level-bar {
2357+
.media-keys-osd .level-bar {
22632358
border-radius: 0.3em;
22642359
background-color: rgb(172, 205, 138);
22652360
}

0 commit comments

Comments
 (0)