...
 
Commits (10)
m4_define([plata_maj_ver], [0])
m4_define([plata_mnr_ver], [7])
m4_define([plata_mcr_ver], [8])
m4_define([plata_mcr_ver], [9])
m4_define([plata_version], [plata_maj_ver.plata_mnr_ver.plata_mcr_ver])
m4_define([plata_git_url], [https://gitlab.com/tista500/plata-theme])
......
......@@ -9,15 +9,15 @@
@import '../../../gtk/sass/common/colors';
colors {
selection: $key_selection_color;
selection: to-upper-case(#{$sel_bg});
rb: #{red($key_selection_color)};
rb: #{red($sel_bg)};
gb: #{green($key_selection_color)};
gb: #{green($sel_bg)};
bb: #{blue($key_selection_color)};
bb: #{blue($sel_bg)};
accent_label: $acc_fg;
accent_label: to-upper-case(#{$acc_fg});
// round values for selected-label color
rl: #{round(red($acc_fg))};
......
......@@ -21,8 +21,8 @@ SASSC_OPTION="-M -t nested"
$SASSC $SASSC_OPTION sass/gtksourceview.scss sass/gtksourceview.css
# Colors in HEXs
selection1="`grep -e selection1 sass/gtksourceview.css | cut -c15-21 | awk '{print toupper($0)}'`"
selection2="`grep -e selection2 sass/gtksourceview.css | cut -c15-21 | awk '{print toupper($0)}'`"
selection1="`grep -e selection1 sass/gtksourceview.css | cut -c15-21`"
selection2="`grep -e selection2 sass/gtksourceview.css | cut -c15-21`"
# Check and re-color color-scheme
if [ -e $KEY_FILE ]; then
......
......@@ -9,7 +9,7 @@
@import '../../../gtk/sass/common/colors';
colors {
selection1: $sel_bg;
selection1: to-upper-case(#{$sel_bg});
selection2: mix($sel_bg, $base, percentage($a_fg_bdp));
selection2: to-upper-case(#{mix($sel_bg, $base, percentage($a_fg_bdp))});
}
......@@ -23,29 +23,29 @@ $SASSC $SASSC_OPTION sass/telegram_light.scss sass/telegram_light.css
$SASSC $SASSC_OPTION sass/telegram_dark.scss sass/telegram_dark.css
# Colors in HEXs
l_sel_bg="`grep -e sel_bg sass/telegram_light.css | cut -c11-17 | awk '{print toupper($0)}'`"
l_acc_fg="`grep -e acc_fg sass/telegram_light.css | cut -c11-17 | awk '{print toupper($0)}'`"
l_acc_bg="`grep -e acc_bg sass/telegram_light.css | cut -c11-17 | awk '{print toupper($0)}'`"
l_acc_f1="`grep -e acc_f1 sass/telegram_light.css | cut -c11-17 | awk '{print toupper($0)}'`"
l_acc_f2="`grep -e acc_f2 sass/telegram_light.css | cut -c11-17 | awk '{print toupper($0)}'`"
l_sgt_bg="`grep -e sgt_bg sass/telegram_light.css | cut -c11-17 | awk '{print toupper($0)}'`"
l_sgt_f1="`grep -e sgt_f1 sass/telegram_light.css | cut -c11-17 | awk '{print toupper($0)}'`"
l_sgt_f2="`grep -e sgt_f2 sass/telegram_light.css | cut -c11-17 | awk '{print toupper($0)}'`"
l_dst_bg="`grep -e dst_bg sass/telegram_light.css | cut -c11-17 | awk '{print toupper($0)}'`"
l_dst_f1="`grep -e dst_f1 sass/telegram_light.css | cut -c11-17 | awk '{print toupper($0)}'`"
l_dst_f2="`grep -e dst_f2 sass/telegram_light.css | cut -c11-17 | awk '{print toupper($0)}'`"
d_sel_bg="`grep -e sel_bg sass/telegram_dark.css | cut -c11-17 | awk '{print toupper($0)}'`"
d_acc_fg="`grep -e acc_fg sass/telegram_dark.css | cut -c11-17 | awk '{print toupper($0)}'`"
d_acc_bg="`grep -e acc_bg sass/telegram_dark.css | cut -c11-17 | awk '{print toupper($0)}'`"
d_acc_f1="`grep -e acc_f1 sass/telegram_dark.css | cut -c11-17 | awk '{print toupper($0)}'`"
d_acc_f2="`grep -e acc_f2 sass/telegram_dark.css | cut -c11-17 | awk '{print toupper($0)}'`"
d_sgt_bg="`grep -e sgt_bg sass/telegram_dark.css | cut -c11-17 | awk '{print toupper($0)}'`"
d_sgt_f1="`grep -e sgt_f1 sass/telegram_dark.css | cut -c11-17 | awk '{print toupper($0)}'`"
d_sgt_f2="`grep -e sgt_f2 sass/telegram_dark.css | cut -c11-17 | awk '{print toupper($0)}'`"
d_dst_bg="`grep -e dst_bg sass/telegram_dark.css | cut -c11-17 | awk '{print toupper($0)}'`"
d_dst_f1="`grep -e dst_f1 sass/telegram_dark.css | cut -c11-17 | awk '{print toupper($0)}'`"
d_dst_f2="`grep -e dst_f2 sass/telegram_dark.css | cut -c11-17 | awk '{print toupper($0)}'`"
l_sel_bg="`grep -e sel_bg sass/telegram_light.css | cut -c11-17`"
l_acc_fg="`grep -e acc_fg sass/telegram_light.css | cut -c11-17`"
l_acc_bg="`grep -e acc_bg sass/telegram_light.css | cut -c11-17`"
l_acc_f1="`grep -e acc_f1 sass/telegram_light.css | cut -c11-17`"
l_acc_f2="`grep -e acc_f2 sass/telegram_light.css | cut -c11-17`"
l_sgt_bg="`grep -e sgt_bg sass/telegram_light.css | cut -c11-17`"
l_sgt_f1="`grep -e sgt_f1 sass/telegram_light.css | cut -c11-17`"
l_sgt_f2="`grep -e sgt_f2 sass/telegram_light.css | cut -c11-17`"
l_dst_bg="`grep -e dst_bg sass/telegram_light.css | cut -c11-17`"
l_dst_f1="`grep -e dst_f1 sass/telegram_light.css | cut -c11-17`"
l_dst_f2="`grep -e dst_f2 sass/telegram_light.css | cut -c11-17`"
d_sel_bg="`grep -e sel_bg sass/telegram_dark.css | cut -c11-17`"
d_acc_fg="`grep -e acc_fg sass/telegram_dark.css | cut -c11-17`"
d_acc_bg="`grep -e acc_bg sass/telegram_dark.css | cut -c11-17`"
d_acc_f1="`grep -e acc_f1 sass/telegram_dark.css | cut -c11-17`"
d_acc_f2="`grep -e acc_f2 sass/telegram_dark.css | cut -c11-17`"
d_sgt_bg="`grep -e sgt_bg sass/telegram_dark.css | cut -c11-17`"
d_sgt_f1="`grep -e sgt_f1 sass/telegram_dark.css | cut -c11-17`"
d_sgt_f2="`grep -e sgt_f2 sass/telegram_dark.css | cut -c11-17`"
d_dst_bg="`grep -e dst_bg sass/telegram_dark.css | cut -c11-17`"
d_dst_f1="`grep -e dst_f1 sass/telegram_dark.css | cut -c11-17`"
d_dst_f2="`grep -e dst_f2 sass/telegram_dark.css | cut -c11-17`"
# Check and re-color color-scheme
if [ -e $KEY_FILE ]; then
......
......@@ -9,18 +9,18 @@
@import '../../../gtk/sass/common/colors';
colors {
sel_bg: $sel_bg;
sel_bg: to-upper-case(#{$sel_bg});
acc_fg: $acc_fg;
acc_bg: $acc_bg;
acc_f1: mix($acc_fg, $bg, percentage($a_trk_1));
acc_f2: mix($acc_fg, $bg, percentage($a_trk_2));
acc_fg: to-upper-case(#{$acc_fg});
acc_bg: to-upper-case(#{$acc_bg});
acc_f1: to-upper-case(#{mix($acc_fg, $bg, percentage($a_trk_1))});
acc_f2: to-upper-case(#{mix($acc_fg, $bg, percentage($a_trk_2))});
sgt_bg: $sggt_bg;
sgt_f1: mix($sel_fg, $sggt_bg, percentage($a_trk_1));
sgt_f2: mix($sel_fg, $sggt_bg, percentage($a_trk_2));
sgt_bg: to-upper-case(#{$sggt_bg});
sgt_f1: to-upper-case(#{mix($sel_fg, $sggt_bg, percentage($a_trk_1))});
sgt_f2: to-upper-case(#{mix($sel_fg, $sggt_bg, percentage($a_trk_2))});
dst_bg: $dest_bg;
dst_f1: mix($dest_bg, $bg, percentage($a_trk_1));
dst_f2: mix($dest_bg, $bg, percentage($a_trk_2));
dst_bg: to-upper-case(#{$dest_bg});
dst_f1: to-upper-case(#{mix($dest_bg, $bg, percentage($a_trk_1))});
dst_f2: to-upper-case(#{mix($dest_bg, $bg, percentage($a_trk_2))});
}
......@@ -2087,6 +2087,13 @@ image.toolbar-cover-frame { // mask L/R edge borders
}
}
headerbar > widget > box.horizontal button.image-button.popup.toggle {
&:checked > image.selected { // Shuffle tracks?
@include radius($r, none);
box-shadow: inset 0 0 0 999px $base;
}
}
// /***************************
// * Cinnamon-Control-Center *
// ***************************/
......
......@@ -301,6 +301,39 @@ spinner {
}
}
// /**********************
// * General Typography *
// **********************/
@if $maj_ver == 4 {
.type {
&-large-title {
@include fontscaling(2.4);
font-weight: 300;
}
&-title {
@include fontscaling(1.3);
font-weight: 700;
}
&-heading {
@include fontscaling(1.1);
font-weight: 500;
}
&-body {
@include fontscaling(1.0);
font-weight: 400;
}
&-caption {
@include fontscaling(0.9);
font-weight: 400;
}
}
}
// /****************
// * Text Entries *
// ****************/
......@@ -5494,6 +5527,9 @@ infobar {
}
&:disabled {
@include button(flat-disabled, $tc: $fix_fg);
label, // override generic disabled labels/images color
image { color: track($fix_fg, $a_fg_dis); }
}
&:checked {
@include button(flat-checked, $tc: $fix_fg);
......
......@@ -2357,6 +2357,12 @@ stack > box.vertical widget overlay grid.horizontal > stack {
margin-bottom: -1px;
}
button.carousel-item.flat.menu.radio:focus {
// outlines cause unwanted region-violations on avatar GtkImages,
// so let's hide them
outline-width: 0;
}
// > 3.25.90
scrolledwindow.view > viewport.frame > stack > list { // left-pane
@extend %sidebar_template;
......
......@@ -27,3 +27,8 @@ $ref_size: 13.33px; // = 10pt = 1em
@function rem($px, $fs: $ref_size, $sw: $ref_weight) {
@return round($px / $fs * $sw * 100) / 100 * 1rem;
}
@mixin fontscaling($s: 1.0) {
font-size:
round(($ref_size / ($ref_size * 0 + 1)) * $s * 72 / 96 * 10) / 10 + pt;
}