Skip to content

Commit 9b5b908

Browse files
committed
fix: background color for hover and selected elements in the sidebar is properly displayed
1 parent b324e73 commit 9b5b908

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

gtk4/rose-pine.css

+16
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,19 @@
4141
@define-color sidebar_backdrop_color #26233A;
4242
@define-color sidebar_bg_color #26233A;
4343
@define-color sidebar_fg_color #e0def4;
44+
45+
/* Target the specific row in the sidebar that's selected */
46+
.navigation-sidebar row:selected {
47+
background-color: #c4a7e7;
48+
color: #191724;
49+
}
50+
51+
/* Target the label in the selected row */
52+
.navigation-sidebar row:selected .sidebar-label {
53+
color: #191724; /* Ensure text is visible against the background */
54+
}
55+
56+
/* Hover effect for non-selected rows */
57+
.navigation-sidebar row:hover:not(:selected) {
58+
background-color: rgba(196, 167, 231, 0.2);
59+
}

0 commit comments

Comments
 (0)