Skip to content

Commit

Permalink
Fix $presence-offline not visible with light theme if room tile selected
Browse files Browse the repository at this point in the history
  • Loading branch information
su-ex committed Apr 1, 2022
1 parent 9092353 commit 6e73e67
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion res/themes/legacy-light/css/_legacy-light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ $roomtile-default-badge-bg-color: $accent;
$roomtile-selected-bg-color: #fff;

$presence-away: #d9b072;
$presence-offline: #e0e0e0;
$presence-offline: #bdbdbd;
$presence-busy: #FF5B55;

// Legacy theme backports
Expand Down
2 changes: 1 addition & 1 deletion res/themes/light/css/_light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ $rte-code-bg-color: rgba(0, 0, 0, 0.04);
// Presence
// ********************
$presence-away: #d9b072;
$presence-offline: $quinary-content;
$presence-offline: #bdbdbd;
$presence-busy: $alert;
// ********************

Expand Down
4 changes: 4 additions & 0 deletions theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ replace_colors() {
BG_ACCENT="$M_ACCENT_DARK"
CODEBLOCK_BACKGROUND_COLOR="#121212"
PILL_COLOR="rgba(255, 255, 255, 0.12)"
PRESENCE_OFFLINE="#e0e0e0" # not applied because not existing specifically for dark
else
BG_ACCENT="$M_ACCENT_LIGHT"
CODEBLOCK_BACKGROUND_COLOR="#00000010"
PILL_COLOR="rgba(0, 0, 0, 0.1)" # default
PRESENCE_OFFLINE="#bdbdbd" # for light this should actually be darker
fi
# Neutral colors
sed -i 's|#15171b|#212121|gi' "$f"
Expand Down Expand Up @@ -105,6 +107,8 @@ replace_colors() {

sed -i "s|\\(\$codeblock-background-color: \\).*;|\\1$CODEBLOCK_BACKGROUND_COLOR;|gi" "$f"

sed -i "s|\\(\$presence-offline: \\).*;|\\1$PRESENCE_OFFLINE;|gi" "$f"

# Accent colors
sed -i "s|#368bd6|$M_ACCENT|gi" "$f"
sed -i "s|#ac3ba8|$M_ACCENT|gi" "$f"
Expand Down

0 comments on commit 6e73e67

Please sign in to comment.