Skip to content

Commit cecd89a

Browse files
committed
fix dev css loading
1 parent 4bf7b67 commit cecd89a

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎data/style.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
}
55

66
.query-cell:hover {
7-
background-color: alpha(currentColor, 0.07);
7+
background-color: alpha(@window_fg_color, 0.07);
88
}
99

1010
.object-sidebar {

‎src/ui/style.rs‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ use crate::config::RESOURCE_PREFIX;
22
use relm4::gtk::{self, gio};
33

44
pub fn load() {
5+
if cfg!(debug_assertions) {
6+
relm4::set_global_css(include_str!("../../data/style.css"));
7+
return;
8+
}
9+
510
let resource_path = format!("{RESOURCE_PREFIX}/style.css");
611
if gio::resources_lookup_data(&resource_path, gio::ResourceLookupFlags::NONE).is_err() {
712
relm4::set_global_css(include_str!("../../data/style.css"));

0 commit comments

Comments
 (0)