Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gtk3: Changed selected backdrop fg/bg colors to shades of grey. #303

Merged
merged 1 commit into from
Sep 25, 2021

Conversation

DarkTrick
Copy link
Contributor

@DarkTrick DarkTrick commented Sep 25, 2021

Before: "grey on blue" was unreadable.
Related Issue: #300

Implementation Detail: Deleted several specific styles in favor of one general style.

Before: "blue on grey" was unreadable.
Issue: shimmerproject#300

Deleted several specific styles in favor of one general style.
@@ -60,7 +60,8 @@ $backdrop_text_color: mix($text_color, $backdrop_base_color, 80%);
$backdrop_bg_color: $bg_color;
$backdrop_fg_color: mix($fg_color, $backdrop_bg_color, 50%);
$backdrop_insensitive_color: if($variant == 'light', darken($backdrop_bg_color, 15%), lighten($backdrop_bg_color, 15%));
$backdrop_selected_fg_color: if($variant == 'light', $backdrop_base_color, $backdrop_text_color);
$backdrop_selected_fg_color: if($variant == 'light', darken($base_color, 50%), $backdrop_text_color);
$backdrop_selected_bg_color: if($variant == 'light', darken($base_color, 17%), lighten($bg_color, 17%));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Name of variable backdrop_selected_bg_color should be written in all lowercase letters with hyphens instead of underscores
Name of variable base_color should be written in all lowercase letters with hyphens instead of underscores
Name of variable bg_color should be written in all lowercase letters with hyphens instead of underscores

@@ -60,7 +60,8 @@ $backdrop_text_color: mix($text_color, $backdrop_base_color, 80%);
$backdrop_bg_color: $bg_color;
$backdrop_fg_color: mix($fg_color, $backdrop_bg_color, 50%);
$backdrop_insensitive_color: if($variant == 'light', darken($backdrop_bg_color, 15%), lighten($backdrop_bg_color, 15%));
$backdrop_selected_fg_color: if($variant == 'light', $backdrop_base_color, $backdrop_text_color);
$backdrop_selected_fg_color: if($variant == 'light', darken($base_color, 50%), $backdrop_text_color);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Name of variable backdrop_selected_fg_color should be written in all lowercase letters with hyphens instead of underscores
Name of variable backdrop_text_color should be written in all lowercase letters with hyphens instead of underscores
Name of variable base_color should be written in all lowercase letters with hyphens instead of underscores

@@ -4517,6 +4512,7 @@ headerbar.selection-mode button.titlebutton,

&:backdrop {
color: $backdrop_selected_fg_color;
background-color: $backdrop_selected_bg_color;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Name of variable backdrop_selected_bg_color should be written in all lowercase letters with hyphens instead of underscores


&:backdrop {
color: $backdrop_selected_fg_color;
background-color: $backdrop_selected_bg_color;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Name of variable backdrop_selected_bg_color should be written in all lowercase letters with hyphens instead of underscores

}

&:backdrop {
color: $backdrop_selected_fg_color;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Name of variable backdrop_selected_fg_color should be written in all lowercase letters with hyphens instead of underscores
Properties should be ordered background-color, color

background-color: $selected_bg_color;
}

&:backdrop {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Begin pseudo elements with double colons: ::

// don't differentiate between focussed and unfocussed widgets.
&:focus, &{
color: $selected_fg_color;
background-color: $selected_bg_color;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Name of variable selected_bg_color should be written in all lowercase letters with hyphens instead of underscores


// don't differentiate between focussed and unfocussed widgets.
&:focus, &{
color: $selected_fg_color;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Name of variable selected_fg_color should be written in all lowercase letters with hyphens instead of underscores
Properties should be ordered background-color, color

background-color: $selected_bg_color;

// don't differentiate between focussed and unfocussed widgets.
&:focus, &{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Each selector in a comma sequence should be on its own single line
Opening curly brace { should be preceded by one space

@DarkTrick
Copy link
Contributor Author

Here's an example:

image

I tested mainly through gtk3-widget-factory.

@bluesabre bluesabre merged commit 0f7dd2a into shimmerproject:master Sep 25, 2021
@DarkTrick DarkTrick deleted the correct_backdrop_colors branch September 30, 2021 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants