added preview icons to eazel and arlo themes, and made

added preview icons to eazel and arlo themes, and made
	nautilus_theme_get_selector use them.  Also, got rid of
	explicitly set backgrounds for the panels in the property browser
This commit is contained in:
Andy Hertzfeld 2000-07-24 07:59:26 +00:00
parent d9d8eb0b0e
commit 5d8487765c
8 changed files with 41 additions and 10 deletions

View file

@ -1,3 +1,19 @@
2000-07-24 Andy Hertzfeld <andy@eazel.com>
* libnautilus-extensions/nautilus-theme.c:
(nautilus_theme_make_selector):
made it use a theme preview icon, if available
* src/nautilus-property-browser.c:
(nautilus_property_browser_initialize):
got rid of explicit backgrounds for the three panels, so they use whatever is
specified by the current theme
* icons/arlo/Makefile.am:
* icons/arlo/theme_preview.png:
added preview icon for arlo theme
* icons/eazel/Makefile.am:
* icons/eazel/theme_preview.png:
added preview icon for eazel theme
2000-07-24 Pavel Cisler <pavel@eazel.com>
* RENAMING:

View file

@ -4,6 +4,7 @@ arlo_DATA = \
arlo.xml \
i-directory.png \
i-regular.png \
sidebar_tab_pieces.png
sidebar_tab_pieces.png \
theme_preview.png
EXTRA_DIST = $(arlo_DATA)

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

View file

@ -49,6 +49,7 @@ eazel_DATA = \
i-regular.png \
i-regular-aa.png \
i-regular.xml \
theme_preview.png \
$(NULL)
EXTRA_DIST = $(eazel_DATA)

Binary file not shown.

After

Width:  |  Height:  |  Size: 6 KiB

View file

@ -178,6 +178,17 @@ nautilus_theme_make_selector (const char *theme_name)
char *pixbuf_file, *temp_str ;
GdkPixbuf *pixbuf;
/* first, see if we can find an explicit preview */
temp_str = g_strdup_printf ("%s/%s", theme_name, "theme_preview.png");
pixbuf_file = nautilus_pixmap_file(temp_str);
g_free (temp_str);
if (pixbuf_file != NULL) {
pixbuf = gdk_pixbuf_new_from_file (pixbuf_file);
g_free (pixbuf_file);
return pixbuf;
}
/* now look for a directory */
temp_str = g_strdup_printf ("%s/%s", theme_name, "i-directory.png");
pixbuf_file = nautilus_pixmap_file(temp_str);
g_free (temp_str);

View file

@ -178,6 +178,17 @@ nautilus_theme_make_selector (const char *theme_name)
char *pixbuf_file, *temp_str ;
GdkPixbuf *pixbuf;
/* first, see if we can find an explicit preview */
temp_str = g_strdup_printf ("%s/%s", theme_name, "theme_preview.png");
pixbuf_file = nautilus_pixmap_file(temp_str);
g_free (temp_str);
if (pixbuf_file != NULL) {
pixbuf = gdk_pixbuf_new_from_file (pixbuf_file);
g_free (pixbuf_file);
return pixbuf;
}
/* now look for a directory */
temp_str = g_strdup_printf ("%s/%s", theme_name, "i-directory.png");
pixbuf_file = nautilus_pixmap_file(temp_str);
g_free (temp_str);

View file

@ -133,7 +133,6 @@ static char *strip_extension (const char
static char *get_xml_path (NautilusPropertyBrowser *property_browser);
#define BROWSER_BACKGROUND_COLOR "rgb:FFFF/FFFF/FFFF"
#define BROWSER_TITLE_COLOR "rgb:DDDD/DDDD/DDDD"
#define THEME_SELECT_COLOR "rgb:FFFF/9999/9999"
#define BUTTON_SELECT_COLOR "rgb:FFFF/9999/9999"
@ -230,8 +229,6 @@ nautilus_property_browser_initialize (GtkObject *object)
gtk_viewport_set_shadow_type(GTK_VIEWPORT(viewport), GTK_SHADOW_OUT);
gtk_widget_set_usize (viewport, 70, -1);
background = nautilus_get_widget_background (viewport);
nautilus_background_set_color (background, BROWSER_TITLE_COLOR);
gtk_box_pack_start (GTK_BOX (property_browser->details->container), property_browser->details->category_container, FALSE, FALSE, 0);
gtk_widget_show (property_browser->details->category_container);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (property_browser->details->category_container), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
@ -253,10 +250,6 @@ nautilus_property_browser_initialize (GtkObject *object)
gtk_container_set_border_width (GTK_CONTAINER (property_browser->details->title_box), 0);
gtk_widget_show(property_browser->details->title_box);
background = nautilus_get_widget_background(property_browser->details->title_box);
nautilus_background_set_color(background, BROWSER_TITLE_COLOR);
gtk_box_pack_start (GTK_BOX(property_browser->details->content_container), property_browser->details->title_box, FALSE, FALSE, 0);
temp_frame = gtk_frame_new(NULL);
@ -287,8 +280,6 @@ nautilus_property_browser_initialize (GtkObject *object)
temp_box = gtk_event_box_new();
gtk_container_set_border_width (GTK_CONTAINER (temp_box), 0);
gtk_widget_show(temp_box);
background = nautilus_get_widget_background(temp_box);
nautilus_background_set_color(background, BROWSER_TITLE_COLOR);
temp_frame = gtk_frame_new(NULL);
gtk_frame_set_shadow_type(GTK_FRAME(temp_frame), GTK_SHADOW_IN);