Skip to content

Commit b59d603

Browse files
authored
Mint-X cinnamon: colour destructive button background instead of text. (#509)
* Mint-X cinnamon: colour destructive button background ...instead of text. * reduce width of prompt dialog
1 parent c31db2a commit b59d603

File tree

1 file changed

+49
-7
lines changed

1 file changed

+49
-7
lines changed

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

Lines changed: 49 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,54 @@ StScrollBar StButton#vhandle:hover {
11581158
}
11591159

11601160
.dialog-button:destructive-action {
1161-
color: #c21616;
1161+
color: white;
1162+
border-width: 1px;
1163+
border-color: rgba(40, 40, 40, 0.4);
1164+
border-image: none;
1165+
border-radius: 4px;
1166+
padding: 2px 31px 5px;
1167+
background-gradient-direction: vertical;
1168+
background-gradient-start: #e83c44;
1169+
background-gradient-end: #ce1921;
1170+
}
1171+
1172+
.dialog-button:focus:destructive-action {
1173+
color: white;
1174+
border-width: 1px;
1175+
border-color: rgba(172, 205, 138, 0.4);
1176+
border-image: none;
1177+
border-radius: 4px;
1178+
padding: 2px 31px 5px;
1179+
background-gradient-direction: vertical;
1180+
background-gradient-start: #e83c44;
1181+
background-gradient-end: #ce1921;
1182+
}
1183+
1184+
.dialog-button:hover:destructive-action {
1185+
background-gradient-direction: vertical;
1186+
background-gradient-start: #ee4a52;
1187+
background-gradient-end: #e22831;
1188+
}
1189+
1190+
.dialog-button:focus:hover:destructive-action {
1191+
color: white;
1192+
border-width: 1px;
1193+
border-color: rgba(172, 205, 138, 0.4);
1194+
border-image: none;
1195+
border-radius: 4px;
1196+
padding: 2px 31px 5px;
1197+
background-gradient-direction: vertical;
1198+
background-gradient-start: #ee4a52;
1199+
background-gradient-end: #e22831;
1200+
}
1201+
1202+
.dialog-button:active:destructive-action,
1203+
.dialog-button:checked:destructive-action,
1204+
.dialog-button:focus:checked:destructive-action,
1205+
.dialog-button:focus:active:destructive-action {
1206+
background-gradient-direction: vertical;
1207+
background-gradient-start: #b21811;
1208+
background-gradient-end: #be2a32;
11621209
}
11631210

11641211
.dialog-list .dialog-list-title {
@@ -1464,17 +1511,13 @@ On-Screen Keyboard (>= Cinnamon 6.6)
14641511

14651512
.prompt-dialog {
14661513
/* this is the width of the entire modal popup */
1467-
width: 500px;
1514+
width: 400px;
14681515
}
14691516

14701517
.polkit-dialog-user-layout {
14711518
spacing: 10px;
14721519
}
14731520

1474-
.polkit-dialog-user-layout:rtl {
1475-
padding-right: 10px;
1476-
}
1477-
14781521
.polkit-dialog-user-combo {
14791522
border-image: url("button-assets/button.png") 4;
14801523
padding: 0.5em 2em;
@@ -1496,7 +1539,6 @@ On-Screen Keyboard (>= Cinnamon 6.6)
14961539

14971540
.polkit-dialog-user-combo:focus:hover {
14981541
border-image: url("button-assets/button-focus-hover.png") 4;
1499-
padding: 3px 31px 4px;
15001542
}
15011543

15021544
.polkit-dialog-user-combo:focus:checked,

0 commit comments

Comments
 (0)