Skip to content

Commit

Permalink
gnome-shell/login-lock: Use proper background qrcode colors in light …
Browse files Browse the repository at this point in the history
…mode

LP: #2067661
  • Loading branch information
3v1n0 committed May 31, 2024
1 parent d843566 commit 3c1e507
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
13 changes: 10 additions & 3 deletions gnome-shell/src/gnome-shell-sass/widgets/_login-lock.scss
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ $_gdm_dialog_width: 25em;
}

&:logged-in {
// color border for logged-in user
.user-icon {
border-color: $selected_bg_color;
StIcon {
Expand Down Expand Up @@ -503,8 +502,16 @@ $_gdm_dialog_width: 25em;

// QR Code
.qr-code {
background: black;
@if ($variant == 'light') {
$qrcode_bg_color: mix($fg_color, $bg_color, $background_mix_factor);
background-color: $qrcode_bg_color;
border-color: $qrcode_bg_color;
color: $fg_color;
} @else {
background-color: $_gdm_fg;
border-color: $_gdm_fg;
color: $_gdm_bg;
}
border-radius: $base_border_radius * .5;
border-color: white;
border-width: 1em;
}
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,16 @@ $_gdm_dialog_width: 25em;

// QR Code
.qr-code {
background: black;
@if ($variant == 'light') {
$qrcode_bg_color: mix($fg_color, $bg_color, $background_mix_factor);
background-color: $qrcode_bg_color;
border-color: $qrcode_bg_color;
color: $fg_color;
} @else {
background-color: $_gdm_fg;
border-color: $_gdm_fg;
color: $_gdm_bg;
}
border-radius: $base_border_radius * .5;
border-color: white;
border-width: 1em;
}

0 comments on commit 3c1e507

Please sign in to comment.