Commit 7af50483 authored by Bilal Elmoussaoui's avatar Bilal Elmoussaoui
Browse files

CI: use codespell

parent 35a16e88
Pipeline #218027 passed with stage
in 16 minutes and 38 seconds
......@@ -26,3 +26,7 @@ rustfmt:
- cargo fmt --version
- cargo fmt --all -- --color=always --check
codespell:
image: "docker.io/bilelmoussaoui/codespell"
script:
- codespell -S "*.png,*.po,.git"
......@@ -75,7 +75,7 @@ $_switch_margin: if($_sizevariant=='default', 10px, 7px);
These wildcard seems unavoidable, need to investigate.
Wildcards are bad and troublesome, use them with care,
or better, just don't.
Everytime a wildcard is used a kitten dies, painfully.
Every time a wildcard is used a kitten dies, painfully.
*/
*:disabled { -gtk-icon-effect: dim; }
......@@ -168,7 +168,7 @@ flowbox {
background-color: if($variant=='light', transparent, black);
border-radius: 0;
padding: 0;
&:backdrop { background-color: if($variant=='light', transparent, darken($backdrop_base_color,5%)); }
&:active, &:selected { background-color: if($variant=='light', transparent, $selected_bg_color); }
&:disabled { background-color: if($variant=='light', transparent, $insensitive_bg_color); }
......@@ -586,7 +586,7 @@ button {
@at-root %button_basic_flat,
&.flat {
@include button(undecorated);
// to avoid adiacent buttons borders clashing when transitioning, the transition on the normal state is set
// to avoid adjacent buttons borders clashing when transitioning, the transition on the normal state is set
// to none, while it's added back in the hover state, so the button decoration will fade in on hover, but
// it won't fade out when the pointer leave the button allocation area. To make the transition more evident
// in this case the duration is increased.
......@@ -837,7 +837,7 @@ button {
// child, a label needs just lateral padding while an icon needs vertical
// padding added too.
outline-offset: -3px; // needs to be set or it gets overriden by GtkRadioButton outline-offset
outline-offset: -3px; // needs to be set or it gets overridden by GtkRadioButton outline-offset
> label {
padding-left: 6px; // label padding
......@@ -913,7 +913,7 @@ button {
label { padding: 0; }
// the followind code is needed since we use a darker bottom border on buttons, which looks pretty
// the following code is needed since we use a darker bottom border on buttons, which looks pretty
// bad with a 100% border radius (see https://bugzilla.gnome.org/show_bug.cgi?id=771205 for details),
// so on relevant states we an additional background-image with a gradient clipped on the border-box,
// so setting a transparent border would reveal it.
......@@ -1594,7 +1594,7 @@ headerbar {
border-color: $backdrop_borders_color;
background-color: $bg_color;
background-image: none;
box-shadow: inset 0 1px $top_hilight;
box-shadow: inset 0 1px $top_highlight;
transition: $backdrop_transition;
}
......@@ -1627,7 +1627,7 @@ headerbar {
.selection-mode &,
&.selection-mode {
$_hc: mix($top_hilight, $suggested_bg_color, 50%); // hilight color
$_hc: mix($top_highlight, $suggested_bg_color, 50%); // highlight color
color: $selected_fg_color;
border-color: $suggested_border_color;
......@@ -1638,11 +1638,11 @@ headerbar {
&:backdrop {
background-color: $suggested_bg_color;
background-image: none;
box-shadow: inset 0 1px mix($top_hilight, $suggested_bg_color, 60%);
label {
box-shadow: inset 0 1px mix($top_highlight, $suggested_bg_color, 60%);
label {
text-shadow: none;
color: $selected_fg_color;
color: $selected_fg_color;
}
}
......@@ -1780,9 +1780,9 @@ headerbar {
padding: 0;
}
}
separator.titlebutton { opacity: 0; } /* hide the close button separator */
.solid-csd & {
......@@ -1983,7 +1983,7 @@ treeview.view {
&:backdrop, & {
border-left-color: mix($selected_fg_color, $selected_bg_color, 50%);
border-top-color: transparentize($fg_color, 0.9); // doesn't work unfortunatelly
border-top-color: transparentize($fg_color, 0.9); // doesn't work unfortunately
}
}
......@@ -2881,12 +2881,12 @@ switch {
@if $variant == 'light' {
@include button(normal-alt, $edge: $shadow_color);
}
}
@else {
@include button(normal-alt, $c: lighten($bg_color,6%), $edge: $shadow_color);
}
}
image { color: transparent; } /* only show i / o for the accessible theme */
&:hover slider {
......@@ -3478,7 +3478,7 @@ scale {
}
slider {
&:dir(ltr), &:dir(rtl) { // specificity bumb
&:dir(ltr), &:dir(rtl) { // specificity bump
&:hover, &:backdrop, &:disabled, &:backdrop:disabled, & {
margin-bottom: -15px;
margin-top: 6px;
......@@ -4119,7 +4119,7 @@ separator.sidebar {
$_placesidebar_icons_opacity: 0.7;
row image.sidebar-icon { opacity: $_placesidebar_icons_opacity; } // dim the sidebar icons
// see bug #786613 for details
// see bug #786613 for details
// on this oddity
placessidebar {
......@@ -4229,7 +4229,7 @@ paned {
-gtk-icon-source: none; // defeats the ugly default handle decoration
border-style: none; // just to be sure
background-color: transparent;
// workaround, using background istead of a border since the border will get rendered twice (?)
// workaround, using background instead of a border since the border will get rendered twice (?)
background-image: image($borders_color);
background-size: 1px 1px;
......@@ -4308,7 +4308,7 @@ infobar {
&.error {
&:backdrop > revealer > box, & > revealer > box {
label, & { color: $fg_color; }
background-color: if($variant == 'light', desaturate(lighten(invert($selected_bg_color), 45%), 30%),
background-color: if($variant == 'light', desaturate(lighten(invert($selected_bg_color), 45%), 30%),
desaturate(darken(invert($selected_bg_color),40%), 70%));
border-bottom: 1px solid lighten($borders_color, 5%);
}
......@@ -4359,7 +4359,7 @@ tooltip {
// see https://bugzilla.gnome.org/show_bug.cgi?id=736155 for details.
background-color: transparentize(black, 0.2);
background-clip: padding-box;
border: 1px solid $tooltip_borders_color; // this suble border is meant to
border: 1px solid $tooltip_borders_color; // this sublte border is meant to
// not make the tooltip melt with
// very dark backgrounds
}
......@@ -4630,9 +4630,9 @@ decoration {
background-color: $borders_color;
border: solid 1px $borders_color;
border-radius: 0;
box-shadow: inset 0 0 0 3px $headerbar_color, inset 0 1px $top_hilight;
box-shadow: inset 0 0 0 3px $headerbar_color, inset 0 1px $top_highlight;
&:backdrop { box-shadow: inset 0 0 0 3px $backdrop_bg_color, inset 0 1px $top_hilight; }
&:backdrop { box-shadow: inset 0 0 0 3px $backdrop_bg_color, inset 0 1px $top_highlight; }
}
}
......
......@@ -132,9 +132,9 @@
} @else { @return transparentize(black, $_lbg*0.8); }
}
@function _button_hilight_color($c) {
@function _button_highlight_color($c) {
//
// calculate the right top hilight color for buttons
// calculate the right top highlight color for buttons
//
// $c: base color;
//
......@@ -182,9 +182,9 @@
// backdrop, backdrop-active, backdrop-insensitive, backdrop-insensitive-active,
// osd, osd-hover, osd-active, osd-insensitive, osd-backdrop, undecorated
//
// This mixin sets the $button_fill global variable which containts the button background-image
// This mixin sets the $button_fill global variable which contains the button background-image
//
$_hilight_color: _button_hilight_color($c);
$_highlight_color: _button_highlight_color($c);
$_button_edge: if($edge == none, none, _widget_edge($edge));
$_blank_edge: if($edge == none, none, _widget_edge(transparentize($edge,1)));
$_button_shadow: 0 1px 2px transparentize($shadow_color, 0.03);
......@@ -201,7 +201,7 @@
linear-gradient(to top, darken($c,1%) 2px, $c)) !global;
background-image: $button_fill;
@include _button_text_shadow($tc, $c);
@include _shadows(inset 0 1px $_hilight_color, $_button_edge, $_button_shadow);
@include _shadows(inset 0 1px $_highlight_color, $_button_edge, $_button_shadow);
}
@else if $t==hover {
......@@ -215,12 +215,12 @@
@if $variant == 'light' {
$button_fill: linear-gradient(to top, $c, lighten($c, 1%) 1px) !global;
@include _button_text_shadow($tc, lighten($c, 6%));
@include _shadows(inset 0 1px _button_hilight_color(lighten($c, 6%)), $_button_edge, $_button_shadow);
@include _shadows(inset 0 1px _button_highlight_color(lighten($c, 6%)), $_button_edge, $_button_shadow);
}
@else {
$button_fill: linear-gradient(to top, darken($c,1%), lighten($c, 1%) 1px) !global;
@include _button_text_shadow($tc,lighten($c, 6%));
@include _shadows(inset 0 1px _button_hilight_color(darken($c, 2%)), $_button_edge, $_button_shadow);
@include _shadows(inset 0 1px _button_highlight_color(darken($c, 2%)), $_button_edge, $_button_shadow);
}
background-image: $button_fill;
}
......@@ -235,12 +235,12 @@
@include _button_text_shadow($tc, $c);
@if $variant == 'light' {
background-image: linear-gradient(to bottom, lighten($c, 5%) 20%, $c 90%);
@include _shadows(inset 0 1px _button_hilight_color(lighten($c, 6%)),
@include _shadows(inset 0 1px _button_highlight_color(lighten($c, 6%)),
$_button_edge, $_button_shadow);
}
@else {
background-image: linear-gradient(to bottom, darken($c, 3%) 20%, darken($c, 6%) 90%);
@include _shadows(inset 0 1px $_hilight_color,
@include _shadows(inset 0 1px $_highlight_color,
$_button_edge, $_button_shadow);
}
}
......@@ -254,12 +254,12 @@
border-color: if($c != $bg_color, _border_color($c, true), $alt_borders_color);
@if $variant == 'light' {
$button_fill: linear-gradient(to bottom, lighten($c, 9%) 10%, lighten($c, 4%) 90%) !global;
@include _shadows(inset 0 1px _button_hilight_color(lighten($c, 6%)),
@include _shadows(inset 0 1px _button_highlight_color(lighten($c, 6%)),
$_button_edge, $_button_shadow);
}
@else {
$button_fill: linear-gradient(to bottom, $c 20%, darken($c, 4%) 90%) !global;
@include _shadows(inset 0 1px $_hilight_color,
@include _shadows(inset 0 1px $_highlight_color,
$_button_edge, $_button_shadow);
}
background-image: $button_fill;
......@@ -274,7 +274,7 @@
border-color: if($c != $bg_color, _border_color($c), $borders_color);
$button_fill: if($variant == 'light', image(darken($c, 14%)), image(darken($c, 9%))) !global;
background-image: $button_fill;
@include _shadows(inset 0 1px transparentize($_hilight_color, 1), $_button_edge);
@include _shadows(inset 0 1px transparentize($_highlight_color, 1), $_button_edge);
text-shadow: none;
-gtk-icon-shadow: none;
......@@ -479,7 +479,7 @@
}
}
@mixin headerbar_fill($c:$headerbar_color, $hc:$top_hilight, $ov: none) {
@mixin headerbar_fill($c:$headerbar_color, $hc:$top_highlight, $ov: none) {
//
// headerbar fill
//
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment