From 504f917b40cab2b32182b77a7f14d231f23bb9c0 Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 17 Jul 2020 02:59:37 -0400 Subject: [PATCH] Increase context menus minimum opacity The previous opacity could be unreadable when there was lots of text behind, notably for the account menu with the room list behind. --- src/themes/Glass.qpl | 7 ++++++- src/themes/Midnight.qpl | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/themes/Glass.qpl b/src/themes/Glass.qpl index 6717ceda..b96021ff 100644 --- a/src/themes/Glass.qpl +++ b/src/themes/Glass.qpl @@ -150,7 +150,12 @@ controls: color checkedOverlay: controls.button.checkedOverlay menu: - color background: controls.button.background + color background: hsluv( + colors.hue, + colors.bgSaturation * 2, + colors.intensity, + Math.max(0.9, colors.opacity), + ) color border: "black" real borderWidth: 2 diff --git a/src/themes/Midnight.qpl b/src/themes/Midnight.qpl index 76c74ab1..e0a8be03 100644 --- a/src/themes/Midnight.qpl +++ b/src/themes/Midnight.qpl @@ -153,7 +153,12 @@ controls: color checkedOverlay: controls.button.checkedOverlay menu: - color background: controls.button.background + color background: hsluv( + colors.hue, + colors.bgSaturation * 2, + colors.intensity, + Math.max(0.9, colors.opacity), + ) color border: "black" real borderWidth: 2