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;

View File

@@ -68,8 +68,6 @@
&:focus, &
{
@extend %selected_items;
border-radius: 3px;
}
}
}

View File

@@ -10,6 +10,7 @@
@import "scheme";
@import "button";
@import "entry";
@import "desktop";
@import "start-menu";
@import "systray";
@import "taskband";

View File

@@ -0,0 +1,11 @@
/**
* desktop.scss - WinTC Desktop Theme Part Definitions
*
* This source-code is part of Windows XP stuff for XFCE:
* <<https://www.oddmatics.uk>>
*
* Author(s): Rory Fewell <roryf@oddmatics.uk>
*/
$desktop_styles: ();
$desktop_selected_styles: ();

View File

@@ -8,6 +8,7 @@
*/
@import "wintc-comctl";
@import "wintc-desktop";
@import "wintc-taskband";
@import "wintc-taskbuttons";
@import "xp-start-plugin";

View File

@@ -0,0 +1,23 @@
/**
* wintc-desktop.scss - Theme Base WinTC Desktop Styles
*
* This source-code is part of Windows XP stuff for XFCE:
* <<https://www.oddmatics.uk>>
*
* Author(s): Rory Fewell <roryf@oddmatics.uk>
*/
.wintc-desktop
{
background: $desktop_bg;
}
.wintc-desktop iconview
{
@include __wintc_apply_props($desktop_styles);
&:selected
{
@include __wintc_apply_props($desktop_selected_styles);
}
}

View File

@@ -22,6 +22,7 @@
@import "treeview";
@import "switch";
@import "desktop";
@import "start-menu";
@import "systray";
@import "taskband";

View File

@@ -0,0 +1,16 @@
/**
* desktop.scss - Theme Base Desktop Style Constants
*
* This source-code is part of Windows XP stuff for XFCE:
* <<https://www.oddmatics.uk>>
*
* Author(s): Rory Fewell <roryf@oddmatics.uk>
*/
$desktop_styles:
wintc_define_props_fg(
$desktop_styles,
true,
#FFFFFF,
undefined
);