[ghex] Revert "widget: Remove styling differentiation between focus-within and selected"



commit 843234277713e2ba8645ca24e8cf98be8f797475
Author: Logan Rathbone <poprocks gmail com>
Date:   Tue Jun 21 22:15:38 2022 -0400

    Revert "widget: Remove styling differentiation between focus-within and selected"
    
    This reverts commit e0adb95856274ce4ab14f99c82e4eb9bf1a4f844.
    
    This is not the right approach. Will try to write a better patch making
    the unfocused theme/unselected/bg color work better with dark style.

 src/gtkhex.css | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/src/gtkhex.css b/src/gtkhex.css
index 9d3ee95..1b6c530 100644
--- a/src/gtkhex.css
+++ b/src/gtkhex.css
@@ -6,10 +6,16 @@
        background-color: @theme_bg_color;
 }
 
+/* nb: order matters for the next 2 selectors. */
+
 #hex-display:selected, #ascii-display:selected {
+        color: @theme_selected_fg_color;
+        background-color: alpha(shade(@theme_selected_bg_color, 0), 0.2);
+}
+
+#hex-display:focus-within, #ascii-display:focus-within {
         color: @theme_selected_fg_color;
         background-color: @theme_selected_bg_color;
-        /* background-color: alpha(shade(@theme_selected_bg_color, 0), 0.1); */
 }
 
 /* ---- */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]