You are not logged in.
Nice colors brenix. What browser are you using there?
Offline
xfce4/xfwm4 using murrine-svn and hydroxygen icons.
http://i480.photobucket.com/albums/rr16 … t-14-8.png http://i480.photobucket.com/albums/rr16 … -15-14.png http://i480.photobucket.com/albums/rr16 … -16-12.png http://i480.photobucket.com/albums/rr16 … t-17-9.png
Hi methuselah,
Is that the famous alpha-patch for the xfce4-panel? If so how do you activate it after installation?
Also, do you edit gtkrc (or whatever it is called) to make the menu have different colors than the rest of the color theme?
Thanks,
Rasmus
Arch x64 on Thinkpad X200s/W530
Offline
firefox + vimperator maybe ?
Offline
nice wallpaper
Thinkpad L450 | Thinkpad L440 | mITX for life
Offline
I have installed Arch on my generic small laptop ("netbook" its a really bad name). A simple setup just to be simple to the eyes, you know: its a really small screen!
Gnome + Conky
Clean
Details:
GTK Theme: Shinobi http://www.gnome-look.org/content/show. … tent=41263
Icon Theme: Polar http://www.gnome-look.org/content/show. … ent=100614
Cursor Theme: Polar http://www.gnome-look.org/content/show. … tent=27913
Wallpaper: http://www.wallpapersuggest.com/no_more … apers.html
Conky Setup (A simple clock)
# vim: set ft=conkyrc:
use_xft yes
xftfont DejaVu Sans:size=10
update_interval 2
total_run_times 0
own_window yes
own_window_type override
own_window_transparent yes
double_buffer yes
minimum_size 250 5
maximum_width 250
draw_shades no
draw_outline no
draw_borders no
stippled_borders 0
border_margin 5
border_width 1
default_color b9300e
own_window_colour 262524
alignment bottom_left
gap_x 20
gap_y 0
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer left
short_units yes
color0 92d4f6
color1 2a0a17
color2 dfdfdf
color3 f2f2f2
#${color #FFC125}${offset 10}Cpu1:${alignr 10}${color #a4a4a4}${cpu cpu1}%${offset 10}${hwmon 0 temp 1}°
TEXT
${color0}${font OpenLogos:size=46}A${color3} ${font Impact:size=40}${time %k:%M}$font
${color2}${time %d/%m/%y}
${color1}$kernel $machine on $nodename
http://archlinux.me/aymara/ ----> Newbie forever... ¬¬
Offline
Nice colors brenix. What browser are you using there?
Thanks . It's the beta version of Firefox, customized it with the userChrome.css file and a few extentions to make it minimal..
Offline
GGLucas, that's a cool workspace
If it ain't broke, broke it then fix it.
Offline
@GGLucas: Are all those monitors connected to the same PC?
Offline
methuselah wrote:xfce4/xfwm4 using murrine-svn and hydroxygen icons.
http://i480.photobucket.com/albums/rr16 … t-14-8.png http://i480.photobucket.com/albums/rr16 … -15-14.png http://i480.photobucket.com/albums/rr16 … -16-12.png http://i480.photobucket.com/albums/rr16 … t-17-9.png
Hi methuselah,
Is that the famous alpha-patch for the xfce4-panel? If so how do you activate it after installation?Also, do you edit gtkrc (or whatever it is called) to make the menu have different colors than the rest of the color theme?
Thanks,
Rasmus
That is the xfce4-panel with the cairo-patch..... to activate it after compiling and installing it all you have to do is kill the xfce4-panel and then start it again.
In alt+f2 run:
killall xfce4-panel
then:
xfce4-panel &
The menus are that color because that's the way it's written in the gtkrc of my murrine-svn theme. My theme is similar to the 'murrine glow' gtk theme: http://gnome-look.org/content/show.php/ … tent=88406
I do still use a .gtkrc-2.0 file for my panel to detail it some more, I make the background #FFFFFF so that the panel handles have a nice look to them and so the outline of the buttons stand out. I also write this .gtkrc-2.0 using the murrine-svn engine with rgba = TRUE so that the buttons are transparent just like the panel (it helps for that glassy look):
~/.gtkrc-2.0:
gtk_color_scheme = "fg_normal:#FFFFFF\nfg_prelight:#FFFFFF\nfg_active:#FFFFFF\nbg_normal:#FFFFFF\nbg_active:#242229\nbg_prelight:#322F38"
style "panel"
{
xthickness = 3
ythickness = 3
fg[NORMAL] = shade (1.00, @fg_normal)
fg[PRELIGHT] = shade (1.00, @fg_prelight)
fg[ACTIVE] = shade (1.00, @fg_active)
bg[NORMAL] = shade (1.00, @bg_normal)
bg[PRELIGHT] = shade (1.00, @bg_prelight)
bg[ACTIVE] = shade (1.00, @bg_active)
engine "murrine" {
roundness = 2
contrast = 1.0 # 0.8 for less contrast, more than 1.0 for more contrast on borders
glazestyle = 0 # 0 = flat highlight, 1 = curved highlight, 2 = concave style, 3 = top curved highlight, 4 = beryl highlight
gradients = TRUE # FALSE = disabled, TRUE = enabled
gradient_shades = {1.20,1.05,1.05,0.90}
highlight_shade = 1.0 # set highlight amount for buttons or widgets
lightborder_shade = 1.5 # sets lightborder amount for buttons or widgets
reliefstyle = 0
rgba = TRUE
menuitemstyle = 0 # 0 = flat, 1 = glassy, 2 = striped
}
}
# Panel style
class "*Panel*" style "panel"
widget "*Panel*" style "panel"
widget "*PanelWidget*" style "panel"
widget "*PanelApplet*" style "panel"
widget "*fast-user-switch*" style "panel"
class "PanelApp*" style "panel"
class "PanelToplevel*" style "panel"
#widget_class "*Mail*" style "panel"
widget_class "*notif*" style "panel"
widget_class "*Notif*" style "panel"
widget_class "*Panel*" style "panel"
# XFCE panel theming
widget "*Xfce*Panel*" style "panel"
class "*Xfce*Panel*" style "panel"
# include rc style for the xfce4-notes-plugin
include "~/.config/xfce4/panel/xfce4-notes-plugin.gtkrc"
# end of automatic change
For a black xfce4-panel using the cairo-patch (instead of clear 0.2), I changed the "cairo_set_source_rgba" to: (cr, 0, 0, 0) and I change the "#define ALPHA" to: 0.7
the modified patch:
Index: plugins/launcher/launcher.h
===================================================================
--- plugins/launcher/launcher.h (orig)
+++ plugins/launcher/launcher.h (working copy)
@@ -27,7 +27,7 @@
#define BORDER (6)
#define LAUNCHER_NEW_TOOLTIP_API (GTK_CHECK_VERSION (2,11,6))
-#define LAUNCHER_ARROW_SIZE (16)
+#define LAUNCHER_ARROW_SIZE (12)
#define LAUNCHER_POPUP_DELAY (225)
#define LAUNCHER_TOOLTIP_SIZE (32)
#define LAUNCHER_MENU_SIZE (24)
Index: plugins/separator/separator.c
===================================================================
--- plugins/separator/separator.c (orig)
+++ plugins/separator/separator.c (working copy)
@@ -31,8 +31,9 @@
#include <libxfce4panel/xfce-panel-plugin.h>
#define SEPARATOR_WIDTH 8
-#define SEP_START 0.15
-#define SEP_END 0.85
+#define SEP_START 0.0
+#define SEP_END 1.0
+#define ALPHA 0.7
typedef enum
{
@@ -82,8 +83,32 @@
{
GtkAllocation *allocation;
gboolean horizontal;
- int start, end, position;
+ int start, end, position;
int x, y, w, h;
+ cairo_t *cr;
+ GtkStyle *style;
+ double r,g,b;
+
+ style = gtk_widget_get_style (widget);
+ cr = gdk_cairo_create (widget->window);
+ cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
+
+ cairo_rectangle (cr, event->area.x,
+ event->area.y,
+ event->area.width,
+ event->area.height);
+ cairo_clip (cr);
+
+ r = (double) style->bg[widget->state].red / (double) 65535;
+ g = (double) style->bg[widget->state].green / (double) 65535;
+ b = (double) style->bg[widget->state].blue / (double) 65535;
+ cairo_set_source_rgba (cr, 0, 0, 0, ALPHA);
+ cairo_paint (cr);
+
+ r = (double) style->dark[widget->state].red / (double) 65535;
+ g = (double) style->dark[widget->state].green / (double) 65535;
+ b = (double) style->dark[widget->state].blue / (double) 65535;
+ cairo_set_source_rgba (cr, 0, 0, 0, 1.0 - ((1.0 - ALPHA) / 3));
allocation = &(widget->allocation);
horizontal = (xfce_panel_plugin_get_orientation (sep->plugin)
@@ -102,29 +127,33 @@
start = allocation->y + SEP_START * allocation->height;
end = allocation->y + SEP_END * allocation->height;
position = allocation->x + allocation->width / 2;
+
+ cairo_move_to (cr, position, start);
+ cairo_line_to (cr, position, end);
- gtk_paint_vline (widget->style,
- widget->window,
+/* gtk_paint_vline (widget->style, widget->window,
GTK_WIDGET_STATE (widget),
&(event->area),
widget,
"separator",
start, end, position);
- }
+*/ }
else
{
start = allocation->x + SEP_START * allocation->width;
end = allocation->x + SEP_END * allocation->width;
position = allocation->y + allocation->height / 2;
- gtk_paint_hline (widget->style,
- widget->window,
+ cairo_move_to (cr, start, position);
+ cairo_line_to (cr, end, position);
+
+/* gtk_paint_hline (widget->style, widget->window,
GTK_WIDGET_STATE (widget),
&(event->area),
widget,
"separator",
start, end, position);
- }
+*/ }
break;
case SEP_HANDLE:
@@ -154,6 +183,9 @@
break;
}
+ cairo_stroke (cr);
+ cairo_destroy (cr);
+
return TRUE;
}
@@ -163,9 +195,25 @@
static void
separator_add_widget (Separator *sep)
{
- GtkWidget *widget;
+ GtkWidget *widget;
+ GdkScreen *screen;
+ GdkColormap *colormap;
widget = gtk_drawing_area_new ();
+
+ gtk_widget_set_app_paintable(widget, TRUE);
+
+ screen = gtk_widget_get_screen (widget);
+ colormap = gdk_screen_get_rgba_colormap (screen);
+
+ if (!colormap)
+ {
+ colormap = gdk_screen_get_rgb_colormap (screen);
+ g_debug (" No Alpha support \n");
+ }
+
+ gtk_widget_set_colormap (widget, colormap);
+
gtk_widget_show (widget);
gtk_container_add (GTK_CONTAINER (sep->plugin), widget);
Index: libxfce4panel/xfce-panel-internal-plugin.c
===================================================================
--- libxfce4panel/xfce-panel-internal-plugin.c (orig)
+++ libxfce4panel/xfce-panel-internal-plugin.c (working copy)
@@ -34,6 +34,8 @@
#include <libxfce4panel/xfce-panel-plugin-iface.h>
#include <libxfce4panel/libxfce4panel-alias.h>
+#define ALPHA 0.7
+
#define XFCE_INTERNAL_PANEL_PLUGIN_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), XFCE_TYPE_INTERNAL_PANEL_PLUGIN, XfceInternalPanelPluginPrivate))
@@ -157,12 +159,39 @@
iface->focus_panel = xfce_internal_panel_plugin_focus_panel;
}
+static gboolean
+xfce_internal_panel_plugin_expose(GtkWidget *widget, GdkEventExpose *event)
+{
+ cairo_t *cr;
+ GtkStyle *style;
+ double r,g,b;
+
+ cr = gdk_cairo_create (widget->window);
+
+ cairo_rectangle (cr, event->area.x,
+ event->area.y,
+ event->area.width,
+ event->area.height);
+ cairo_clip (cr);
+
+ style = gtk_widget_get_style (widget);
+ r = (double) style->bg[widget->state].red / (double) 65535;
+ g = (double) style->bg[widget->state].green / (double) 65535;
+ b = (double) style->bg[widget->state].blue / (double) 65535;
+ cairo_set_source_rgba (cr, 0, 0, 0, ALPHA);
+ cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
+ cairo_paint (cr);
+
+ cairo_destroy (cr);
+ return GTK_WIDGET_CLASS(xfce_internal_panel_plugin_parent_class)->expose_event(widget, event);
+}
static void
xfce_internal_panel_plugin_class_init (XfceInternalPanelPluginClass *klass)
{
GObjectClass *object_class;
+ GtkWidgetClass *widget_class;
g_type_class_add_private (klass, sizeof (XfceInternalPanelPluginPrivate));
@@ -171,6 +200,10 @@
object_class->get_property = xfce_internal_panel_plugin_get_property;
object_class->set_property = xfce_internal_panel_plugin_set_property;
+ widget_class = (GtkWidgetClass *) klass;
+
+ widget_class->expose_event = xfce_internal_panel_plugin_expose;
+
/* properties */
g_object_class_override_property (object_class, PROP_NAME, "name");
@@ -196,6 +229,8 @@
priv->size = 0;
priv->screen_position = XFCE_SCREEN_POSITION_NONE;
priv->expand = FALSE;
+
+ gtk_widget_set_app_paintable(GTK_WIDGET(plugin), TRUE);
}
Index: libxfce4panel/xfce-panel-external-plugin.c
===================================================================
--- libxfce4panel/xfce-panel-external-plugin.c (orig)
+++ libxfce4panel/xfce-panel-external-plugin.c (working copy)
@@ -39,6 +39,8 @@
#define XFCE_EXTERNAL_PANEL_PLUGIN_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), XFCE_TYPE_EXTERNAL_PANEL_PLUGIN, XfceExternalPanelPluginPrivate))
+#define ALPHA 0.7
+
/* Required arguments: socket_id, name, id, display_name, size, screen_position */
#define REQUIRED_ARGS 6
@@ -141,19 +143,52 @@
iface->set_panel_hidden = xfce_external_panel_plugin_set_panel_hidden;
}
+static gboolean
+xfce_external_panel_plugin_expose(GtkWidget *widget, GdkEventExpose *event)
+{
+ cairo_t *cr;
+ GtkStyle *style;
+ double r,g,b;
+
+ cr = gdk_cairo_create (widget->window);
+
+ cairo_rectangle (cr, event->area.x,
+ event->area.y,
+ event->area.width,
+ event->area.height);
+ cairo_clip (cr);
+
+ cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
+
+ /* fully transparent */
+ style = gtk_widget_get_style (widget);
+ r = (double) style->bg[widget->state].red / (double) 65535;
+ g = (double) style->bg[widget->state].green / (double) 65535;
+ b = (double) style->bg[widget->state].blue / (double) 65535;
+ cairo_set_source_rgba (cr, 0, 0, 0, ALPHA);
+ cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
+ cairo_paint (cr);
+
+ cairo_destroy (cr);
+ return GTK_WIDGET_CLASS(xfce_external_panel_plugin_parent_class)->expose_event(widget, event);
+}
static void
xfce_external_panel_plugin_class_init (XfceExternalPanelPluginClass *klass)
{
GObjectClass *object_class;
+ GtkWidgetClass *widget_class;
g_type_class_add_private (klass, sizeof (XfceExternalPanelPluginPrivate));
object_class = G_OBJECT_CLASS (klass);
+ widget_class = (GtkWidgetClass *) klass;
+
object_class->finalize = xfce_external_panel_plugin_finalize;
object_class->get_property = xfce_external_panel_plugin_get_property;
object_class->set_property = xfce_external_panel_plugin_set_property;
+ widget_class->expose_event = xfce_external_panel_plugin_expose;
/* properties */
g_object_class_override_property (object_class, PROP_NAME, "name");
@@ -181,6 +216,27 @@
priv->construct = NULL;
priv->socket_id = 0;
priv->expand = FALSE;
+
+ {
+ GtkWidget *widget;
+ GdkScreen *screen;
+ GdkColormap *colormap;
+
+ widget = GTK_WIDGET (plugin);
+
+ gtk_widget_set_app_paintable(widget, TRUE);
+
+ screen = gtk_widget_get_screen (widget);
+ colormap = gdk_screen_get_rgba_colormap (screen);
+
+ if (!colormap)
+ {
+ colormap = gdk_screen_get_rgb_colormap (screen);
+ g_debug (" No Alpha support \n");
+ }
+
+ gtk_widget_set_colormap (widget, colormap);
+ }
}
Index: libxfce4panel/xfce-panel-window.c
===================================================================
--- libxfce4panel/xfce-panel-window.c (orig)
+++ libxfce4panel/xfce-panel-window.c (working copy)
@@ -37,9 +37,10 @@
(G_TYPE_INSTANCE_GET_PRIVATE ((o), XFCE_TYPE_PANEL_WINDOW, \
XfcePanelWindowPrivate))
-#define DEFAULT_ORIENTATION GTK_ORIENTATION_HORIZONTAL
-#define DEFAULT_HANDLE_STYLE XFCE_HANDLE_STYLE_BOTH
-#define HANDLE_WIDTH 8
+#define DEFAULT_ORIENTATION GTK_ORIENTATION_HORIZONTAL
+#define DEFAULT_HANDLE_STYLE XFCE_HANDLE_STYLE_BOTH
+#define HANDLE_WIDTH 8
+#define ALPHA 0.7
enum
{
@@ -338,6 +339,26 @@
priv->right_border = TRUE;
priv->movable = TRUE;
+ {
+ GtkWidget *widget;
+ GdkScreen *screen;
+ GdkColormap *colormap;
+
+ widget = GTK_WIDGET (panel_window);
+
+ gtk_widget_set_app_paintable(widget, TRUE);
+
+ screen = gtk_widget_get_screen (widget);
+ colormap = gdk_screen_get_rgba_colormap (screen);
+
+ if (!colormap)
+ {
+ colormap = gdk_screen_get_rgb_colormap (screen);
+ g_debug (" No Alpha support \n");
+ }
+
+ gtk_widget_set_colormap (widget, colormap);
+ }
gtk_widget_set_events (GTK_WIDGET (panel_window),
gtk_widget_get_events (GTK_WIDGET (panel_window))
| GDK_BUTTON_MOTION_MASK
@@ -466,21 +487,31 @@
/* drawing, size and style */
static void
-_panel_window_paint_border (XfcePanelWindow *panel)
+_panel_window_paint_border (XfcePanelWindow * panel, cairo_t *cr)
{
XfcePanelWindowPrivate *priv = XFCE_PANEL_WINDOW_GET_PRIVATE (panel);
- GdkWindow *window = GTK_WIDGET (panel)->window;
+// GdkWindow *window = GTK_WIDGET (panel)->window;
GtkAllocation *a = &(GTK_WIDGET (panel)->allocation);
GtkStyle *style = GTK_WIDGET (panel)->style;
- GtkStateType state_type = GTK_WIDGET_STATE (GTK_WIDGET (panel));
- gint top, bottom, left, right;
- gint x1, x2, y1, y2;
-
- top = priv->top_border ? style->ythickness : 0;
- bottom = priv->bottom_border ? style->ythickness : 0;
- left = priv->left_border ? style->xthickness : 0;
- right = priv->right_border ? style->xthickness : 0;
-
+// GtkStateType state_type = GTK_WIDGET_STATE (GTK_WIDGET (panel));
+ int top, bottom, left, right;
+ double r, g, b;
+ GtkWidget *widget = GTK_WIDGET (panel);
+
+ top = priv->top_border ? 1 /*style->ythickness*/ : 0;
+ bottom = priv->bottom_border ? 1 /*style->ythickness*/ : 0;
+ left = priv->left_border ? 1 /*style->xthickness*/ : 0;
+ right = priv->right_border ? 1 /*style->xthickness*/ : 0;
+
+ cairo_set_line_width (cr, /* top > 1 ? 2.0 :*/ 1.0);
+ cairo_rectangle (cr, a->x, a->y, a->width, a->height);
+
+ r = (double) style->dark[widget->state].red / (double) 65535;
+ g = (double) style->dark[widget->state].green / (double) 65535;
+ b = (double) style->dark[widget->state].blue / (double) 65535;
+ cairo_set_source_rgba (cr, 0, 0, 0, ALPHA);
+ cairo_stroke (cr);
+#if 0
/* Code based on gtk-xfce-engine-2 */
/* Attempt to explain the code below with some ASCII 'art'
@@ -612,6 +643,7 @@
gdk_draw_line (window, style->dark_gc[state_type], x1, y1, x1, y2);
}
}
+#endif
}
@@ -620,11 +652,33 @@
xfce_panel_window_expose (GtkWidget *widget,
GdkEventExpose *event)
{
+ cairo_t *cr;
+ GtkStyle *style;
+ double r,g,b;
XfcePanelWindow *panel_window = XFCE_PANEL_WINDOW (widget);
XfcePanelWindowPrivate *priv = XFCE_PANEL_WINDOW_GET_PRIVATE (panel_window);
if (GTK_WIDGET_DRAWABLE (widget))
{
+ cr = gdk_cairo_create (widget->window);
+
+ cairo_rectangle (cr, event->area.x,
+ event->area.y,
+ event->area.width,
+ event->area.height);
+ cairo_clip (cr);
+
+ cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
+
+ /* fully transparent */
+ style = gtk_widget_get_style (widget);
+ r = (double) style->bg[widget->state].red / (double) 65535;
+ g = (double) style->bg[widget->state].green / (double) 65535;
+ b = (double) style->bg[widget->state].blue / (double) 65535;
+ cairo_set_source_rgba (cr, 0, 0, 0, ALPHA);
+ cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
+ cairo_paint (cr);
+
if (GTK_BIN (widget)->child)
{
gtk_container_propagate_expose (GTK_CONTAINER (widget),
@@ -647,7 +701,9 @@
break;
}
- _panel_window_paint_border (panel_window);
+ _panel_window_paint_border (panel_window, cr);
+
+ cairo_destroy (cr);
}
return FALSE;
@@ -671,18 +727,18 @@
}
if (priv->top_border)
- requisition->height += widget->style->ythickness;
+ requisition->height += 1; //widget->style->ythickness;
if (priv->bottom_border)
- requisition->height += widget->style->ythickness;
+ requisition->height += 1; //widget->style->ythickness;
if (priv->left_border)
- requisition->width += widget->style->xthickness;
+ requisition->width += 1; //widget->style->xthickness;
if (priv->right_border)
- requisition->width += widget->style->xthickness;
+ requisition->width += 1; //widget->style->xthickness;
if (GTK_ORIENTATION_HORIZONTAL == priv->orientation)
- thick = 2 * widget->style->xthickness;
+ thick = 2; // * widget->style->xthickness;
else
- thick = 2 * widget->style->ythickness;
+ thick = 2; // * widget->style->ythickness;
switch (priv->handle_style)
{
@@ -746,9 +802,9 @@
if (GTK_BIN (widget)->child)
{
if (GTK_ORIENTATION_HORIZONTAL == priv->orientation)
- thick = 2 * widget->style->xthickness;
+ thick = 2; // * widget->style->xthickness;
else
- thick = 2 * widget->style->ythickness;
+ thick = 2; // * widget->style->ythickness;
start_handle_size = end_handle_size = 0;
@@ -771,21 +827,21 @@
if (priv->top_border)
{
- childalloc.y += widget->style->ythickness;
- childalloc.height -= widget->style->ythickness;
+ childalloc.y += 1; //widget->style->ythickness;
+ childalloc.height -= 1; //widget->style->ythickness;
}
if (priv->bottom_border)
- childalloc.height -= widget->style->ythickness;
+ childalloc.height -= 1; //widget->style->ythickness;
if (priv->left_border)
{
- childalloc.x += widget->style->xthickness;
- childalloc.width -= widget->style->xthickness;
+ childalloc.x += 1; //widget->style->xthickness;
+ childalloc.width -= 1; //widget->style->xthickness;
}
if (priv->right_border)
- childalloc.width -= widget->style->xthickness;
+ childalloc.width -= 1; //widget->style->xthickness;
if (priv->orientation == GTK_ORIENTATION_HORIZONTAL)
{
@@ -925,8 +981,8 @@
gint x, y, w, h, xthick, ythick;
gboolean horizontal = priv->orientation == GTK_ORIENTATION_HORIZONTAL;
- xthick = widget->style->xthickness;
- ythick = widget->style->ythickness;
+ xthick = 1; //widget->style->xthickness;
+ ythick = 1; //widget->style->ythickness;
if (horizontal)
{
Index: libxfce4panel/xfce-panel-external-item.c
===================================================================
--- libxfce4panel/xfce-panel-external-item.c (orig)
+++ libxfce4panel/xfce-panel-external-item.c (working copy)
@@ -117,7 +117,11 @@
iface->configure = xfce_external_panel_item_configure;
}
-
+static gboolean
+xfce_external_panel_item_expose(GtkWidget *widget, GdkEventExpose *event)
+{
+ return GTK_WIDGET_CLASS(xfce_external_panel_item_parent_class)->expose_event(widget, event);
+}
static void
xfce_external_panel_item_class_init (XfceExternalPanelItemClass *klass)
@@ -131,6 +135,9 @@
object_class->finalize = xfce_external_panel_item_finalize;
widget_class = GTK_WIDGET_CLASS (klass);
+ widget_class->expose_event = xfce_external_panel_item_expose;
+
+ widget_class = GTK_WIDGET_CLASS (klass);
widget_class->button_press_event = xfce_external_panel_item_button_press_event;
}
@@ -152,6 +159,8 @@
priv->to_be_removed = FALSE;
priv->restart = FALSE;
priv->file = NULL;
+
+ gtk_widget_set_app_paintable(GTK_WIDGET(item), TRUE);
}
Last edited by methuselah (2009-06-18 19:23:30)
Offline
methuselah,
Thanks for the advice, the patch and everything. It is really slick!
I installed murrine; not the git version though. I am not totally certain I 'get' the program. Is it sort of a plug-in for gtk? Or is rather a replacement for vanilla-gtk? Are there any hidden cost of installing it I.e. decreased performance or increased power consumption.
BTW: Do you happen to know any way to disable or at least decrease the size of the task list's icons. My panel is too thin so some icons get cut through.
Thanks a bunch,
Rasmus
Arch x64 on Thinkpad X200s/W530
Offline
XMonad with xft fonts:
What I'd like would be a perfect colorscheme for a light background. So if you got one please share.
Offline
@GGLucas: Are all those monitors connected to the same PC?
Yes, yes they are.
Last edited by GGLucas (2022-06-24 08:14:44)
Offline
Really nice desks Ashren and drot
Thanks to webframp for sending me the XMonad/Arch logo he made, cheers
Offline
Gnome:
gtk: gtk-theme-shiki-colors-murrine (modification in gtkrc - animation = FALSE, roundness = 0, progressbarstyle = 0)
wallpaper: A-trip-to-wonderland
metacity: Wasp - Hard - (took off few pixels of height)
icons: gnome-colors-icon-theme
gnomenu theme: Solid-H-Colors - my work
gnomenu button: Plain Round Start Button Pack
terminal, nautilus and firefox icons - this 3 dots on panel - from gnomenu buttons pack
gmusicbrowser with my custom iconset colors and custom layouts
Offline
Here's my latest screenshot, info is in a vim term on the screenshot itself.
You sir, owe me a new keyboard.
Offline
methuselah,
Thanks for the advice, the patch and everything. It is really slick!I installed murrine; not the git version though.
Thanks a bunch,
Rasmus
No problem, I like the git version, that's what I'm using for the RGBA in my xfce4-panel. (I forgot they switched it to murrine-git from murrine-svn)
I am not totally certain I 'get' the program. Is it sort of a plug-in for gtk? Or is rather a replacement for vanilla-gtk?
Murrine/Murrine-git are just gtk-engines like clearlooks, pixmaps, aurora, crux, redmond, thinice, industrial..... etc. They don't replace vanilla gtk. The murrine/murrin-git gtk-engines install a new libmurrine.so library along side of all of your other libraries that are located in the /usr/lib/gtk-2.0/2.10.0/engines directory. it also adds the murrine.xml file to your /usr/share/gtk-engines directory. This just add more ways to draw widgets. You can even write themes to use multiple gtk-engines, my murrine themes usually use the clearlooks glossy and clearlooks gummy gtk-engine for tabs.... some people use pixmap for stuff.
Once you install the murrin/murrine-git gtk-engine then install some murine gtk themes to use:
http://gnome-look.org/content/show.php/ … tent=88406
http://aur.archlinux.org/packages.php?ID=19421
http://aur.archlinux.org/packages.php?ID=26073
http://aur.archlinux.org/packages.php?ID=27191
http://aur.archlinux.org/packages.php?ID=22813
http://aur.archlinux.org/packages.php?ID=16609
You can search through Gnome-Looks for more murrine themes.
Are there any hidden cost of installing it I.e. decreased performance or increased power consumption.
As for performance it's not that bad, but it's also not the fastest gtk engine. I think the the xfce4-engine works much faster than murrine..... murrine is similar to clearlooks-glossy in performance but in my opinion it looks much better and has more options to use for variety. I think murrine is slightly better than the aurora gtk engine performance wise: http://aur.archlinux.org/packages.php?ID=10496
This is a xfce4-engine theme I made recently..... it's fast, but the buttons look crappy (also a matching xfwm4 theme):
http://i480.photobucket.com/albums/rr16 … t-18-7.png
BTW: Do you happen to know any way to disable or at least decrease the size of the task list's icons. My panel is too thin so some icons get cut through.
I'm not sure of a way to do that legitimately.
Last edited by methuselah (2009-06-18 22:47:56)
Offline
http://img8.imageshack.us/img8/5879/sadvqo.th.png
Yes this is Ubuntu. Who wants some?
What kind of chip you got in that, a dorito?
Offline
http://omploader.org/vMXVxOQ/2009-06-18 … _scrot.png
gnu screen
irssi
emacs
urxvt
ncmpcpp
rtorrent
best desktop ever
@brenix, mind sharing your xdefaults, gtk theme, font, and if your using a custom irssi theme then that too
@cdwillis, that was hilarious
Last edited by kolbycrouch (2009-06-19 04:40:11)
Offline
XMonad with xft fonts:
What I'd like would be a perfect colorscheme for a light background. So if you got one please share.
Those are some really nice screenshots Ashren. Nice work.
Offline
Offline
Offline