Enhancement: Fixes #52, Icon views are unthemed

This commit is contained in:
Rory Fewell
2025-10-26 13:47:31 +00:00
parent a2c780b873
commit 75d620ac63
10 changed files with 82 additions and 6 deletions

View File

@@ -5,7 +5,7 @@
/**
* Default styles for the icon view
*/
iconview
iconview:not(:selected)
{
background: transparent;
}

View File

@@ -162,6 +162,11 @@ static void wintc_desktop_window_init(
G_CALLBACK(on_window_map_event),
NULL
);
wintc_widget_add_style_class(
GTK_WIDGET(self),
"wintc-desktop"
);
}
//
@@ -292,8 +297,21 @@ static gboolean wintc_desktop_window_draw(
// FIXME: Just drawing default desktop background colour atm
//
cairo_set_source_rgb(cr, 0.0f, 0.298f, 0.596f);
cairo_paint(cr);
//cairo_set_source_rgb(cr, 0.0f, 0.298f, 0.596f);
//cairo_paint(cr);
// FIXME: Just drawing the style background colour atm
//
GtkStyleContext* ctx = gtk_widget_get_style_context(widget);
gtk_render_background(
ctx,
cr,
0.0f,
0.0f,
(gdouble) wnd_w,
(gdouble) wnd_h
);
// FIXME: Billy basic drawing of the wallpaper, if present
//

View File

@@ -534,13 +534,20 @@ static void wintc_explorer_window_set_property(
case PROP_INITIAL_PATH:
{
const gchar* uri = g_value_get_string(value);
if (!uri)
{
break;
}
// FIXME: We don't handle extended paths yet!
//
WinTCShextPathInfo path_info;
wintc_shext_path_info_demangle_uri(
&path_info,
g_value_get_string(value)
uri
);
wnd->initial_path = path_info.base_path;