Skip to content

Commit

Permalink
Revert "Cleanup border-radius"
Browse files Browse the repository at this point in the history
This reverts commit b7d281c.
  • Loading branch information
lainsce committed Jan 30, 2024
1 parent 392a8a3 commit 5ba7c7e
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 5 deletions.
41 changes: 36 additions & 5 deletions Helium/gtk-4.0/_tauos.scss
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,7 @@ button.image-button.disclosure-button {
}

.content-block {
border-radius: px-to-rem(12px);
padding: px-to-rem(18px);
margin: px-to-rem(6px) 0;
background: bg-color(1);
Expand Down Expand Up @@ -912,6 +913,7 @@ button.image-button.disclosure-button {
}

.mini-content-block {
border-radius: px-to-rem(12px);
margin: px-to-rem(3px) 0;
padding: px-to-rem(18px);
background: bg-color(1);
Expand Down Expand Up @@ -1030,6 +1032,7 @@ button.image-button.disclosure-button {
padding: px-to-rem(8px) px-to-rem(18px);
min-height: px-to-rem(48px);
box-shadow: shadow(1), inset 0 0 0 1px gtkalpha($borders, .4);
border-radius: px-to-rem(12px);
margin: 18px;

&:disabled {
Expand All @@ -1040,6 +1043,7 @@ button.image-button.disclosure-button {
}

.badge {
border-radius: px-to-rem(9999px);
background: $meson-red;
margin-right: px-to-rem(-5px);
margin-top: px-to-rem(-5px);
Expand All @@ -1057,6 +1061,7 @@ button.image-button.disclosure-button {
padding: px-to-rem(3px) px-to-rem(5px);
}
.badge-info {
border-radius: px-to-rem(8px);
border: none;
padding: px-to-rem(10px) px-to-rem(12px);
margin-right: unset;
Expand Down Expand Up @@ -1159,13 +1164,33 @@ button.image-button.disclosure-button {
background: transparent;
}
}

& row:first-child .mini-content-block {
border-top-left-radius: px-to-rem(12px);
border-top-right-radius: px-to-rem(12px);
border-bottom-left-radius: px-to-rem(8px);
border-bottom-right-radius: px-to-rem(8px);
}
& row:first-child:last-child .mini-content-block {
border-top-left-radius: px-to-rem(8px);
border-top-right-radius: px-to-rem(8px);
border-bottom-left-radius: px-to-rem(8px);
border-bottom-right-radius: px-to-rem(8px);
}
& row:last-child .mini-content-block {
border-top-left-radius: px-to-rem(8px);
border-top-right-radius: px-to-rem(8px);
border-bottom-left-radius: px-to-rem(12px);
border-bottom-right-radius: px-to-rem(12px);
}
.mini-content-block {
margin: 2px 0 0 0;
}
}

.dialog-content {
margin: px-to-rem(24px);
border-radius: px-to-rem(12px);
}

.link-button {
Expand Down Expand Up @@ -1312,11 +1337,13 @@ button.image-button.disclosure-button {
}

.flat-appbar {
box-shadow: inset 0 1px 1px 0 gtkalpha(white, #{if($variant == 'light', .5, .15)});
padding: px-to-rem(4px);
box-shadow: inset 0 2px 1px 0 gtkalpha(white, #{if($variant == 'light', .5, .15)});
}
.appbar {
padding: px-to-rem(4px);
background: bg-color(2);
box-shadow: inset 0 1px 1px 0 gtkalpha(white, #{if($variant == 'light', .5, .15)});
box-shadow: inset 0 2px 1px 0 gtkalpha(white, #{if($variant == 'light', .5, .15)}), inset 0 1px 0 0 gtkalpha($borders, .4);
}
.appbar .text-field text,
.flat-appbar .text-field text {
Expand Down Expand Up @@ -1523,6 +1550,7 @@ button.image-button.disclosure-button {

.text-field {
background: bg-color(-3);
border-radius: px-to-rem(8px);
box-shadow: shadow(-1);
outline: none;
min-height: 40px; /* Make TextField not too chonky but still targettable */
Expand Down Expand Up @@ -1629,20 +1657,22 @@ button.image-button.disclosure-button {
}

.text-view {
box-shadow: 0 0 0 1px $headerbar_fg_color;
border-radius: px-to-rem(4px) px-to-rem(4px) 0 0;
box-shadow: 0 1px 0 0 $headerbar_fg_color;
}

.text-view:hover {
box-shadow: 0 0 0 2px $headerbar_fg_color;
box-shadow: 0 2px 0 0 $headerbar_fg_color;
}

.text-view:focus-within {
background: state-color($surface_container_lowest_bg_color, 1);
box-shadow: 0 0 0 2px $headerbar_fg_color;
box-shadow: 0 2px 0 0 $headerbar_fg_color;
}

.switchbar {
padding: 16px 22px;
border-radius: px-to-rem(12px);
margin: 8px 4px;
background: bg-color(1);

Expand Down Expand Up @@ -1755,6 +1785,7 @@ button.image-button.disclosure-button {
background: none;
min-height: 56px;
min-width: 150px;
border-radius: px-to-rem(12px);
padding: 0;
margin: 0;
}
Expand Down
5 changes: 5 additions & 0 deletions Helium/gtk-4.0/widgets/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ button {
min-height: 24px;
min-width: 16px;
padding: 5px 9px;
border-radius: $button_radius;
font-weight: bold;

@include focus-ring();
Expand Down Expand Up @@ -391,6 +392,8 @@ menubutton {
&.suggested-action,
&.destructive-action,
&.opaque {
border-radius: $button_radius;

&.circular, &.pill {
border-radius: 9999px;
}
Expand Down Expand Up @@ -510,6 +513,8 @@ splitbutton {
> button,
> menubutton > button {
@extend %button_basic_flat;

border-radius: $button_radius;
}
}

Expand Down
1 change: 1 addition & 0 deletions Helium/gtk-4.0/widgets/_header-bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ windowcontrols {
> image {
background: $button_color;
color: $view_fg_color;
border-radius: $button_radius;
padding: 2px;
transition: $button_transition;
@if $contrast == 'high' {
Expand Down
3 changes: 3 additions & 0 deletions Helium/gtk-4.0/widgets/_window.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ window {
box-shadow: shadow(5),
0 0 0 1px gtkalpha($border_color, 0.4);
margin: 0px;
border-radius: $window_radius;

&:backdrop {
// The first transparent is to avoid jumping
Expand All @@ -14,10 +15,12 @@ window {
}

&.dialog.message {
border-radius: px-to-rem(12px);
background: bg-color(3);
box-shadow: none;
}
&.dialog-content {
border-radius: px-to-rem(12px);
background: bg-color(3);
box-shadow: none;
}
Expand Down

0 comments on commit 5ba7c7e

Please sign in to comment.