mirror of
https://github.com/rozniak/xfce-winxp-tc.git
synced 2026-05-03 20:51:15 +00:00
Enhancement: Fixes #52, Icon views are unthemed
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
/**
|
/**
|
||||||
* Default styles for the icon view
|
* Default styles for the icon view
|
||||||
*/
|
*/
|
||||||
iconview
|
iconview:not(:selected)
|
||||||
{
|
{
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -162,6 +162,11 @@ static void wintc_desktop_window_init(
|
|||||||
G_CALLBACK(on_window_map_event),
|
G_CALLBACK(on_window_map_event),
|
||||||
NULL
|
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
|
// FIXME: Just drawing default desktop background colour atm
|
||||||
//
|
//
|
||||||
cairo_set_source_rgb(cr, 0.0f, 0.298f, 0.596f);
|
//cairo_set_source_rgb(cr, 0.0f, 0.298f, 0.596f);
|
||||||
cairo_paint(cr);
|
//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
|
// FIXME: Billy basic drawing of the wallpaper, if present
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -534,13 +534,20 @@ static void wintc_explorer_window_set_property(
|
|||||||
|
|
||||||
case PROP_INITIAL_PATH:
|
case PROP_INITIAL_PATH:
|
||||||
{
|
{
|
||||||
|
const gchar* uri = g_value_get_string(value);
|
||||||
|
|
||||||
|
if (!uri)
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
// FIXME: We don't handle extended paths yet!
|
// FIXME: We don't handle extended paths yet!
|
||||||
//
|
//
|
||||||
WinTCShextPathInfo path_info;
|
WinTCShextPathInfo path_info;
|
||||||
|
|
||||||
wintc_shext_path_info_demangle_uri(
|
wintc_shext_path_info_demangle_uri(
|
||||||
&path_info,
|
&path_info,
|
||||||
g_value_get_string(value)
|
uri
|
||||||
);
|
);
|
||||||
|
|
||||||
wnd->initial_path = path_info.base_path;
|
wnd->initial_path = path_info.base_path;
|
||||||
|
|||||||
@@ -68,8 +68,6 @@
|
|||||||
&:focus, &
|
&:focus, &
|
||||||
{
|
{
|
||||||
@extend %selected_items;
|
@extend %selected_items;
|
||||||
|
|
||||||
border-radius: 3px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
@import "scheme";
|
@import "scheme";
|
||||||
@import "button";
|
@import "button";
|
||||||
@import "entry";
|
@import "entry";
|
||||||
|
@import "desktop";
|
||||||
@import "start-menu";
|
@import "start-menu";
|
||||||
@import "systray";
|
@import "systray";
|
||||||
@import "taskband";
|
@import "taskband";
|
||||||
|
|||||||
11
themes/build-common/gtk-3.0-base/init/desktop.scss
Normal file
11
themes/build-common/gtk-3.0-base/init/desktop.scss
Normal 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: ();
|
||||||
@@ -8,6 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@import "wintc-comctl";
|
@import "wintc-comctl";
|
||||||
|
@import "wintc-desktop";
|
||||||
@import "wintc-taskband";
|
@import "wintc-taskband";
|
||||||
@import "wintc-taskbuttons";
|
@import "wintc-taskbuttons";
|
||||||
@import "xp-start-plugin";
|
@import "xp-start-plugin";
|
||||||
|
|||||||
23
themes/build-common/gtk-3.0-base/override/wintc-desktop.scss
Normal file
23
themes/build-common/gtk-3.0-base/override/wintc-desktop.scss
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -22,6 +22,7 @@
|
|||||||
@import "treeview";
|
@import "treeview";
|
||||||
@import "switch";
|
@import "switch";
|
||||||
|
|
||||||
|
@import "desktop";
|
||||||
@import "start-menu";
|
@import "start-menu";
|
||||||
@import "systray";
|
@import "systray";
|
||||||
@import "taskband";
|
@import "taskband";
|
||||||
|
|||||||
16
themes/build-common/gtk-3.0-base/styling/desktop.scss
Normal file
16
themes/build-common/gtk-3.0-base/styling/desktop.scss
Normal 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
|
||||||
|
);
|
||||||
Reference in New Issue
Block a user