From b009740d6adf723e1744afbed928712a99ea705b Mon Sep 17 00:00:00 2001 From: Miraty Date: Tue, 27 Apr 2021 00:24:20 +0200 Subject: [PATCH] Add textarea-specific text color settings --- style.less | 25 +++++++++++++------------ themes/libreqr/theme.php | 16 +++++++++------- 2 files changed, 22 insertions(+), 19 deletions(-) diff --git a/style.less b/style.less index 1e3b80e..da08a49 100755 --- a/style.less +++ b/style.less @@ -279,12 +279,13 @@ header, footer { &:hover { border-width: 2px; border-style: solid; + @media @light { - color: @text-light; + border-color: @borderHover-light; } @media @dark { - color: @text-dark; + border-color: @borderHover-dark; } } @@ -294,11 +295,11 @@ header, footer { outline: none; @media @light { - border-color: @borderHover-light; + border-color: @borderFocus-light; } @media @dark { - border-color: @borderHover-dark; + border-color: @borderFocus-dark; } } } @@ -322,15 +323,15 @@ header, footer { scrollbar-width: auto; @media @light { - background-color: @bgTextField-light; - color: @text-light; - scrollbar-color: @text-light @bgTextField-light; + background-color: @bgTextarea-light; + color: @textareaText-light; + scrollbar-color: @textareaText-light @bgTextarea-light; } @media @dark { - background-color: @bgTextField-dark; - color: @text-dark; - scrollbar-color: @text-dark @bgTextField-dark; + background-color: @bgTextarea-dark; + color: @textareaText-dark; + scrollbar-color: @textareaText-dark @bgTextarea-dark; } } @@ -347,11 +348,11 @@ input[type=submit] { font-weight: normal; font-size: 1em; @media @light { - color: @secondaryText-light; + color: @textareaPlaceholder-light; } @media @dark { - color: @secondaryText-dark; + color: @textareaPlaceholder-dark; } } diff --git a/themes/libreqr/theme.php b/themes/libreqr/theme.php index 47f015f..d4116a0 100755 --- a/themes/libreqr/theme.php +++ b/themes/libreqr/theme.php @@ -5,23 +5,25 @@ $themeDimensionsIcons = array(16, 32, 48, 64, 96, 128, 192, 256, 384, 512); $colorScheme = array( // Light theme + "text-light" => "#2a2a2a", "bg-light" => "white", "bgField-light" => "#eeeeee", - "bgTextField-light" => "#e5e5e5", "bgHelp-light" => "#ececec", + "bgTextarea-light" => "#e5e5e5", + "textareaText-light" => "#2a2a2a", + "textareaPlaceholder-light" => "#868686", "border-light" => "#65666b", "borderHover-light" => "#46484e", "borderFocus-light" => "#2a2a2a", - "text-light" => "#2a2a2a", - "secondaryText-light" => "#868686", // Dark theme + "text-dark" => "white", "bg-dark" => "#2a2a2a", "bgField-dark" => "#31363B", - "bgTextField-dark" => "#232629", "bgHelp-dark" => "#151616", + "bgTextarea-dark" => "#232629", + "textareaText-dark" => "white", + "textareaPlaceholder-dark" => "#bababa", "border-dark" => "#5f5f5f", "borderHover-dark" => "#808080", - "borderFocus-dark" => "white", - "text-dark" => "white", - "secondaryText-dark" => "#bababa" + "borderFocus-dark" => "white" );