mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Properly style call buttons across app, when already in a call
This commit is contained in:
@@ -71,6 +71,15 @@
|
||||
background: fade-out($background-color, 0.6);
|
||||
}
|
||||
|
||||
&--discouraged {
|
||||
@include light-theme {
|
||||
opacity: 0.4;
|
||||
}
|
||||
@include dark-theme {
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
@include light-theme {
|
||||
@include hover-and-active-states($background-color, $color-black);
|
||||
}
|
||||
@@ -96,10 +105,16 @@
|
||||
&--affirmative {
|
||||
color: $color-ultramarine;
|
||||
}
|
||||
&--affirmative--discouraged {
|
||||
color: fade-out($color-ultramarine, 0.5);
|
||||
}
|
||||
|
||||
&--destructive {
|
||||
color: $color-accent-red;
|
||||
}
|
||||
&--destructive--discouraged {
|
||||
color: fade-out($color-ultramarine, 0.5);
|
||||
}
|
||||
|
||||
@include hover-and-active-states($background-color, $color-black);
|
||||
}
|
||||
@@ -119,10 +134,16 @@
|
||||
&--affirmative {
|
||||
color: $color-ultramarine-light;
|
||||
}
|
||||
&--affirmative--discouraged {
|
||||
color: fade-out($color-ultramarine-light, 0.5);
|
||||
}
|
||||
|
||||
&--destructive {
|
||||
color: $color-accent-red;
|
||||
}
|
||||
&--destructive--discouraged {
|
||||
color: fade-out($color-accent-red, 0.5);
|
||||
}
|
||||
|
||||
@include hover-and-active-states($background-color, $color-white);
|
||||
}
|
||||
@@ -162,6 +183,15 @@
|
||||
background: fade-out($background-color, 0.6);
|
||||
}
|
||||
|
||||
&--discouraged {
|
||||
@include light-theme {
|
||||
opacity: 0.4;
|
||||
}
|
||||
@include dark-theme {
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
@include light-theme {
|
||||
@include hover-and-active-states($background-color, $color-black);
|
||||
}
|
||||
@@ -191,6 +221,10 @@
|
||||
color: fade-out($color, 0.4);
|
||||
background: fade-out($background-color, 0.6);
|
||||
}
|
||||
&--discouraged {
|
||||
color: fade-out($color, 0.5);
|
||||
}
|
||||
|
||||
@include hover-and-active-states($background-color, $color-black);
|
||||
}
|
||||
|
||||
@@ -205,6 +239,10 @@
|
||||
color: fade-out($color, 0.4);
|
||||
background: fade-out($background-color, 0.6);
|
||||
}
|
||||
&--discouraged {
|
||||
color: fade-out($color, 0.5);
|
||||
}
|
||||
|
||||
@include hover-and-active-states($background-color, $color-white);
|
||||
}
|
||||
}
|
||||
@@ -221,6 +259,15 @@
|
||||
min-width: 68px;
|
||||
padding: 8px;
|
||||
|
||||
&--discouraged {
|
||||
@include light-theme {
|
||||
opacity: 0.4;
|
||||
}
|
||||
@include dark-theme {
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
@include light-theme {
|
||||
background-color: $color-gray-05;
|
||||
color: $color-black;
|
||||
|
||||
@@ -406,7 +406,12 @@
|
||||
}
|
||||
|
||||
.CallsNewCall__ItemActionButton--join-call-disabled {
|
||||
opacity: 0.5;
|
||||
@include light-theme {
|
||||
opacity: 0.4;
|
||||
}
|
||||
@include dark-theme {
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
.CallsNewCall__ItemActionButtonTooltip {
|
||||
|
||||
@@ -309,8 +309,4 @@
|
||||
|
||||
margin-block: 8px 5px;
|
||||
}
|
||||
|
||||
&__tooltip {
|
||||
@include tooltip;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -171,21 +171,38 @@
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
&--in-another-call {
|
||||
@include light-theme {
|
||||
opacity: 0.5;
|
||||
}
|
||||
@include dark-theme {
|
||||
opacity: 0.4;
|
||||
}
|
||||
}
|
||||
|
||||
&:not(:disabled) {
|
||||
@include light-theme {
|
||||
&:hover,
|
||||
&:focus {
|
||||
&:hover {
|
||||
background: $color-gray-02;
|
||||
}
|
||||
&:focus {
|
||||
@include keyboard-mode {
|
||||
background: $color-gray-02;
|
||||
}
|
||||
}
|
||||
&:active {
|
||||
background: $color-gray-05;
|
||||
}
|
||||
}
|
||||
@include dark-theme {
|
||||
&:hover,
|
||||
&:focus {
|
||||
&:hover {
|
||||
background: $color-gray-80;
|
||||
}
|
||||
&:focus {
|
||||
@include keyboard-mode {
|
||||
background: $color-gray-02;
|
||||
}
|
||||
}
|
||||
&:active {
|
||||
background: $color-gray-75;
|
||||
}
|
||||
@@ -281,13 +298,13 @@
|
||||
}
|
||||
|
||||
&:not(:disabled) {
|
||||
// Override hover state coming from __button above.
|
||||
&:hover {
|
||||
// Override hover/focus/active state coming from __button above.
|
||||
&:hover,
|
||||
&:active {
|
||||
@include any-theme {
|
||||
background-color: darken($background, 16%);
|
||||
}
|
||||
}
|
||||
|
||||
&:focus {
|
||||
@include keyboard-mode {
|
||||
background-color: darken($background, 16%);
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
// Copyright 2024 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
.InAnotherCallTooltip {
|
||||
@include tooltip;
|
||||
}
|
||||
Reference in New Issue
Block a user