Skip to content

Commit 2cbec58

Browse files
committed
Round frames and containers
3px rounding, like buttons, spinbuttons etc..
1 parent ee0e2ed commit 2cbec58

3 files changed

Lines changed: 97 additions & 6 deletions

File tree

src/Mint-Y/gtk-3.0/gtk-dark.css

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,12 @@ toolbar, .inline-toolbar {
772772
border-color: #202023;
773773
border-width: 0 1px 1px;
774774
padding: 3px;
775-
border-radius: 0 0 3px 3px; }
775+
border-radius: 0 0 3px 3px; }
776+
777+
.frame + .inline-toolbar,
778+
frame + .inline-toolbar {
779+
margin-top: -3px;
780+
padding-top: 6px; }
776781

777782
searchbar {
778783
background-color: #2e2e33;
@@ -2277,18 +2282,41 @@ levelbar block.empty {
22772282
background-color: #333339;
22782283
border-color: #333339; }
22792284

2285+
frame {
2286+
border-radius: 3px;
2287+
background-color: #2e2e33; }
2288+
22802289
frame > border,
22812290
.frame {
22822291
margin: 0;
22832292
padding: 0;
2284-
border-radius: 0;
2293+
border-radius: 3px;
22852294
border: 1px solid #202023; }
22862295

22872296
frame.flat > border,
22882297
frame > border.flat,
22892298
.frame.flat {
22902299
border-style: none; }
22912300

2301+
frame list,
2302+
frame listbox,
2303+
frame treeview,
2304+
frame scrolledwindow,
2305+
frame viewport,
2306+
.frame list,
2307+
.frame listbox,
2308+
.frame treeview,
2309+
.frame viewport {
2310+
border-radius: 3px; }
2311+
2312+
frame treeview.view header button:first-child,
2313+
.frame treeview.view header button:first-child {
2314+
border-top-left-radius: 3px; }
2315+
2316+
frame treeview.view header button:last-child,
2317+
.frame treeview.view header button:last-child {
2318+
border-top-right-radius: 3px; }
2319+
22922320
scrolledwindow viewport.frame {
22932321
border-style: none; }
22942322

src/Mint-Y/gtk-3.0/gtk.css

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,12 @@ toolbar, .inline-toolbar {
771771
border-color: #c8c8ce;
772772
border-width: 0 1px 1px;
773773
padding: 3px;
774-
border-radius: 0 0 3px 3px; }
774+
border-radius: 0 0 3px 3px; }
775+
776+
.frame + .inline-toolbar,
777+
frame + .inline-toolbar {
778+
margin-top: -3px;
779+
padding-top: 6px; }
775780

776781
searchbar {
777782
background-color: #f8f8f9;
@@ -2282,18 +2287,41 @@ levelbar block.empty {
22822287
background-color: rgba(0, 0, 0, 0.07);
22832288
border-color: rgba(0, 0, 0, 0.07); }
22842289

2290+
frame {
2291+
border-radius: 3px;
2292+
background-color: #f8f8f9; }
2293+
22852294
frame > border,
22862295
.frame {
22872296
margin: 0;
22882297
padding: 0;
2289-
border-radius: 0;
2298+
border-radius: 3px;
22902299
border: 1px solid #c8c8ce; }
22912300

22922301
frame.flat > border,
22932302
frame > border.flat,
22942303
.frame.flat {
22952304
border-style: none; }
22962305

2306+
frame list,
2307+
frame listbox,
2308+
frame treeview,
2309+
frame scrolledwindow,
2310+
frame viewport,
2311+
.frame list,
2312+
.frame listbox,
2313+
.frame treeview,
2314+
.frame viewport {
2315+
border-radius: 3px; }
2316+
2317+
frame treeview.view header button:first-child,
2318+
.frame treeview.view header button:first-child {
2319+
border-top-left-radius: 3px; }
2320+
2321+
frame treeview.view header button:last-child,
2322+
.frame treeview.view header button:last-child {
2323+
border-top-right-radius: 3px; }
2324+
22972325
scrolledwindow viewport.frame {
22982326
border-style: none; }
22992327

src/Mint-Y/gtk-3.0/sass/_common.scss

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,13 @@ toolbar {
894894
border-color: $borders_color;
895895
border-width: 0 1px 1px;
896896
padding: 3px;
897-
border-radius: 0 0 3px 3px;
897+
border-radius: 0 0 3px 3px;
898+
}
899+
900+
.frame + .inline-toolbar,
901+
frame + .inline-toolbar {
902+
margin-top: -3px;
903+
padding-top: 6px;
898904
}
899905

900906
searchbar {
@@ -2382,11 +2388,16 @@ levelbar {
23822388
}
23832389
}
23842390

2391+
frame {
2392+
border-radius: 3px;
2393+
background-color: $bg_color;
2394+
}
2395+
23852396
frame > border,
23862397
.frame {
23872398
margin: 0;
23882399
padding: 0;
2389-
border-radius: 0;
2400+
border-radius: 3px;
23902401
border: 1px solid $borders_color;
23912402
}
23922403

@@ -2396,6 +2407,30 @@ frame > border.flat,
23962407
border-style: none;
23972408
}
23982409

2410+
frame list,
2411+
frame listbox,
2412+
frame treeview,
2413+
frame scrolledwindow,
2414+
frame viewport,
2415+
.frame list,
2416+
.frame listbox,
2417+
.frame treeview,
2418+
.frame viewport {
2419+
border-radius: 3px;
2420+
}
2421+
2422+
2423+
frame treeview.view header button:first-child,
2424+
.frame treeview.view header button:first-child {
2425+
border-top-left-radius: 3px;
2426+
}
2427+
2428+
frame treeview.view header button:last-child,
2429+
.frame treeview.view header button:last-child {
2430+
border-top-right-radius: 3px;
2431+
}
2432+
2433+
23992434
scrolledwindow {
24002435
viewport.frame { // avoid double borders when viewport inside scrolled window
24012436
border-style: none;

0 commit comments

Comments
 (0)