Skip to content

Commit 30aba6b

Browse files
committed
Merge branch 'master' of github.com:vinceliuice/Fluent-gtk-theme
2 parents 26dcabf + 6103417 commit 30aba6b

File tree

983 files changed

+7905
-11532
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

983 files changed

+7905
-11532
lines changed

src/_sass/_colors.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
@if ($theme == 'teal') { @return $teal-500; }
5656
@if ($theme == 'grey') { @return $grey-700; }
5757
} @else {
58-
@if ($theme == 'default') { @return #3281ea; }
58+
@if ($theme == 'default') { @return #3281EA; }
5959
@if ($theme == 'purple') { @return $purple-300; }
6060
@if ($theme == 'pink') { @return $pink-300; }
6161
@if ($theme == 'red') { @return $red-500; }

src/_sass/gtk/_common-3.20.scss

+25-27
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,10 @@
9090
background-color: $base;
9191
color: $text;
9292

93-
&:hover { box-shadow: inset 0 0 0 9999px $overlay-hover; }
94-
95-
&:selected:hover { box-shadow: inset 0 0 0 9999px $overlay-selected; }
93+
&:hover { background-color: $overlay-hover; }
9694

9795
&:disabled { color: $text-disabled; }
9896

99-
// &:hover, &:selected { border-radius: $corner-radius; }
100-
10197
&:selected {
10298
@extend %selected_items_primary;
10399

@@ -1845,7 +1841,7 @@ treeview.view {
18451841
}
18461842

18471843
.background:not(.csd) &:selected { // Fix for xfce4 setting
1848-
background-color: mix($text, $base, 10%);
1844+
background-color: mix($text, $base, 15%);
18491845
}
18501846

18511847
&:hover, &:selected { border-radius: 0; }
@@ -2798,7 +2794,7 @@ scale {
27982794
$trough_size: 2px;
27992795
$finetune_trough_size: 4px;
28002796

2801-
$slider_size: 32px;
2797+
$slider_size: 26px;
28022798

28032799
$slider_margin: -($slider_size - $trough_size) / 2;
28042800
$finetune_slider_margin: -($slider_size - $finetune_trough_size) / 2;
@@ -2818,6 +2814,23 @@ scale {
28182814
min-height: $slider_size;
28192815
min-width: $slider_size;
28202816
margin: $slider_margin;
2817+
transition: background-image $duration $ease-out;
2818+
border-radius: 50%;
2819+
color: $primary;
2820+
background-repeat: no-repeat;
2821+
background-size: auto;
2822+
background-position: center;
2823+
2824+
@each $s, $as in ('', ''),
2825+
(':hover', '-hover'),
2826+
(':active', '-active'),
2827+
(':disabled', '-disabled') {
2828+
&#{$s} {
2829+
$_url: 'assets/scale-slider#{$as}#{$asset-suffix}';
2830+
2831+
background-image: -gtk-scaled(url('#{$_url}.png'), url('#{$_url}@2.png'));
2832+
}
2833+
}
28212834
}
28222835

28232836
// click-and-hold the slider to activate
@@ -2867,26 +2880,6 @@ scale {
28672880
&:disabled { background-color: transparent; }
28682881
}
28692882

2870-
slider {
2871-
transition: background-image $duration $ease-out;
2872-
border-radius: 50%;
2873-
color: $primary;
2874-
background-repeat: no-repeat;
2875-
background-size: 25px 25px;
2876-
background-position: center center;
2877-
2878-
@each $s, $as in ('', ''),
2879-
(':hover', '-hover'),
2880-
(':active', '-active'),
2881-
(':disabled', '-disabled') {
2882-
&#{$s} {
2883-
$_url: 'assets/scale-slider#{$as}#{$asset-suffix}';
2884-
2885-
background-image: -gtk-scaled(url('#{$_url}.png'), url('#{$_url}@2.png'));
2886-
}
2887-
}
2888-
}
2889-
28902883
marks,
28912884
value { color: $text-secondary; }
28922885

@@ -2937,6 +2930,11 @@ scale {
29372930
('marks-after', 'marks-after:not(.marks-before)') {
29382931
&.#{$dir_class}.#{$marks_class} {
29392932
slider {
2933+
min-height: 38px;
2934+
min-width: 38px;
2935+
margin: -18px;
2936+
background-color: transparent;
2937+
29402938
@each $state, $state_infix in ('', ''),
29412939
(':disabled', '-disabled') {
29422940
&#{$state} {

src/_sass/gtk/_common-4.0.scss

+15-36
Original file line numberDiff line numberDiff line change
@@ -1162,7 +1162,7 @@ toolbar {
11621162
@at-root %toolbar_osd, &.osd {
11631163
transition: $transition-shadow;
11641164
padding: $space-size;
1165-
border-radius: $corner-radius;
1165+
border-radius: $window-radius;
11661166
box-shadow: $shadow-z4, inset 0 1px highlight($surface);
11671167
background-color: $surface;
11681168
border: none;
@@ -2707,7 +2707,7 @@ scale {
27072707
$trough_size: 2px;
27082708
$finetune_trough_size: 4px;
27092709

2710-
$slider_size: 32px;
2710+
$slider_size: 26px;
27112711

27122712
$slider_margin: -($slider_size - $trough_size) / 2;
27132713
$finetune_slider_margin: -($slider_size - $finetune_trough_size) / 2;
@@ -2763,8 +2763,8 @@ scale {
27632763
border-radius: 50%;
27642764
color: $primary;
27652765
background-repeat: no-repeat;
2766-
background-size: 25px 25px;
2767-
background-position: center center;
2766+
background-size: auto;
2767+
background-position: center;
27682768

27692769
@each $s, $as in ('', ''),
27702770
(':hover', '-hover'),
@@ -2847,48 +2847,25 @@ scale {
28472847
&.#{$dir_class}.#{$marks_class} {
28482848
slider {
28492849
transform: none;
2850-
transition: background-color $duration $ease-out,
2851-
background-size $ripple-fade-out-duration $ease-out,
2852-
background-image $ripple-fade-out-opacity-duration $ease-out;
2853-
min-height: 32px;
2854-
min-width: 32px;
2855-
margin: -15px;
2850+
min-height: 38px;
2851+
min-width: 38px;
2852+
margin: -18px;
28562853
border-radius: 50%;
2857-
background-size: auto, 1000% 1000%;
2858-
background-repeat: no-repeat;
2859-
background-position: center center;
28602854
background-color: transparent;
28612855

2862-
&:focus { background-color: $overlay-focus; }
2863-
2864-
&:hover { background-color: $overlay-hover; }
2865-
2866-
&:focus:hover { background-color: $overlay-focus-hover; }
2867-
2868-
&:active {
2869-
transition: background-color $duration $ease-out,
2870-
background-size 0ms,
2871-
background-image 0ms;
2872-
animation: ripple-on-slider $ripple-fade-in-duration $ease-out forwards;
2873-
background-size: auto, 0% 0%;
2874-
background-color: $overlay-hover;
2875-
}
2876-
28772856
@each $state, $state_infix in ('', ''),
28782857
(':disabled', '-disabled') {
28792858
&#{$state} {
28802859
$_scale_asset: 'assets/scale-#{$dir_infix}-#{$marks_infix}-slider#{$state_infix}#{$asset-suffix}';
28812860

2882-
background-image: -gtk-scaled(url('#{$_scale_asset}.png'), url('#{$_scale_asset}@2.png')),
2883-
radial-gradient(circle, transparent 10%, transparent 0%);
2861+
background-image: -gtk-scaled(url('#{$_scale_asset}.png'), url('#{$_scale_asset}@2.png'));
28842862
}
28852863
}
28862864

28872865
&:active {
28882866
$_scale_asset: 'assets/scale-#{$dir_infix}-#{$marks_infix}-slider#{$asset-suffix}';
28892867

2890-
background-image: -gtk-scaled(url('#{$_scale_asset}.png'), url('#{$_scale_asset}@2.png')),
2891-
radial-gradient(circle, $overlay-active 10%, transparent 0%);
2868+
background-image: -gtk-scaled(url('#{$_scale_asset}.png'), url('#{$_scale_asset}@2.png'));
28922869
}
28932870
}
28942871
}
@@ -3265,9 +3242,10 @@ columnview {
32653242
*********************/
32663243
.app-notification {
32673244
@extend %toolbar_osd;
3268-
margin: 8px;
3245+
margin: $space-size;
32693246
border-spacing: $space-size;
32703247
padding: $space-size;
3248+
border: none;
32713249

32723250
button {
32733251
@extend %button-flat;
@@ -3276,7 +3254,7 @@ columnview {
32763254
}
32773255

32783256
&.frame,
3279-
border { border-style: none; }
3257+
border { border: none; }
32803258
}
32813259

32823260

@@ -3823,12 +3801,13 @@ tooltip {
38233801
background-color: $tooltip;
38243802
color: on($tooltip);
38253803
box-shadow: $shadow-z4;
3826-
border-radius: $corner-radius;
3804+
border-radius: $window-radius;
38273805
margin: 2px 6px 8px 6px;
38283806
}
38293807

3830-
padding: $space-size $space-size*2;
3808+
padding: $space-size $space-size * 2;
38313809
box-shadow: none; // otherwise it gets inherited by windowframe.csd
3810+
border: none;
38323811

38333812
> box {
38343813
border-spacing: $space-size;

0 commit comments

Comments
 (0)