From 15ce06c0852085a7b771706ddf8f9475d9ea7edc Mon Sep 17 00:00:00 2001 From: raveit65 Date: Tue, 28 Oct 2014 22:54:15 +0100 Subject: ContrastHighInverse: move to desktop themes + add metacity theme --- desktop-themes/ContrastHighInverse/Makefile.am | 8 + .../ContrastHighInverse/gtk-2.0/Makefile.am | 5 + .../ContrastHighInverse/gtk-2.0/gtkrc.in | 106 +++++++ desktop-themes/ContrastHighInverse/index.theme.in | 2 +- .../ContrastHighInverse/metacity-1/Makefile.am | 7 + .../metacity-1/metacity-theme-1.xml | 350 +++++++++++++++++++++ 6 files changed, 477 insertions(+), 1 deletion(-) create mode 100644 desktop-themes/ContrastHighInverse/gtk-2.0/Makefile.am create mode 100755 desktop-themes/ContrastHighInverse/gtk-2.0/gtkrc.in create mode 100644 desktop-themes/ContrastHighInverse/metacity-1/Makefile.am create mode 100644 desktop-themes/ContrastHighInverse/metacity-1/metacity-theme-1.xml (limited to 'desktop-themes/ContrastHighInverse') diff --git a/desktop-themes/ContrastHighInverse/Makefile.am b/desktop-themes/ContrastHighInverse/Makefile.am index 7ca5ae9b..eff3d98b 100644 --- a/desktop-themes/ContrastHighInverse/Makefile.am +++ b/desktop-themes/ContrastHighInverse/Makefile.am @@ -7,5 +7,13 @@ themedir = $(datadir)/themes/$(THEME_NAME) theme_DATA = index.theme +SUBDIRS = \ + gtk-2.0 \ + metacity-1 + +DIST_SUBDIRS = \ + gtk-2.0 \ + metacity-1 + DISTCLEANFILES=index.theme EXTRA_DIST=index.theme.in diff --git a/desktop-themes/ContrastHighInverse/gtk-2.0/Makefile.am b/desktop-themes/ContrastHighInverse/gtk-2.0/Makefile.am new file mode 100644 index 00000000..eb9e8504 --- /dev/null +++ b/desktop-themes/ContrastHighInverse/gtk-2.0/Makefile.am @@ -0,0 +1,5 @@ +themedir = $(datadir)/themes/ContrastHighInverse/gtk-2.0 + +theme_DATA = gtkrc + +EXTRA_DIST= $(theme_DATA) diff --git a/desktop-themes/ContrastHighInverse/gtk-2.0/gtkrc.in b/desktop-themes/ContrastHighInverse/gtk-2.0/gtkrc.in new file mode 100755 index 00000000..402a4e53 --- /dev/null +++ b/desktop-themes/ContrastHighInverse/gtk-2.0/gtkrc.in @@ -0,0 +1,106 @@ +# High-Contrast Inverse, "Normal Size" Theme +# +# Original gtkrc by Bill Haneman, based on Standard theme by T. Liebeck, +# which was in turn based on lots of different gtkrc files but +# primarily the one for the metal theme. +# +# High-contrast pixmap icons by jimmac with input from tigert. + +#Note: we just use the LargePrint icons for now, they will be scaled +#to the correct size + +pixmap_path "@prefix@/share/themes/ContrastHighLargePrintInverse/pixmaps" + +#TODO: move sun-jds style downstream +style "sun-jds" +{ + PanelMenu::stripe-gradient-top = "#000033" + PanelMenu::stripe-gradient-bottom = "#000033" +} +class "GtkWidget" style "sun-jds" + +style "default" +{ + engine "hcengine" { + edge_thickness = 2 + } + + xthickness = 2 + ythickness = 2 + + EelEditableLabel::cursor_aspect_ratio = 0.1 + EelEditableLabel::cursor_color = "#00cccc" + + GtkEntry::cursor_color = "#00cccc" + GtkEntry::cursor_aspect_ratio = 0.1 + + GtkHSV::focus-line-pattern = "\0" + + GtkRange::stepper-size = 20 + + GtkTextView::cursor_aspect_ratio = 0.1 + GtkTextView::cursor_color = "#00cccc" + + GtkTreeView::expander-size = 16 + +# GtkWidget::cursor_aspect_ratio = 0.1 + GtkWidget::focus-line-pattern = "\4\2" + GtkWidget::focus-line-width = 2 + GtkWidget::focus-padding = 0 + GtkWidget::interior_focus = 1 + GtkWidget::link-color = "#80ccff" + GtkWidget::visited-link-color = "#ff80ff" + + # Caja + CajaIconContainer::frame_text = 1 + + # Pidgin + GtkIMHtml::hyperlink-color = "#80ccff" + GtkIMHtml::hyperlink-visited-color = "#ff80ff" + GtkIMHtml::hyperlink-prelight-color = "#ffccff" + + # Evolution + GtkHTML::link_color = "#80ccff" + GtkHTML::vlink_color = "#ff80ff" + GtkHTML::cite_color = "#ccff80" + + fg[NORMAL] = "#ffffff" + text[NORMAL] = "#ffffff" + bg[NORMAL] = "#000033" + base[NORMAL] = "#000033" + + fg[INSENSITIVE] = "#999999" + bg[INSENSITIVE] = "#333333" + text[INSENSITIVE] = "#999999" + base[INSENSITIVE] = "#333333" + + fg[PRELIGHT] = "#003333" + text[PRELIGHT] = "#003333" + bg[PRELIGHT] = "#ffffff" + base[PRELIGHT] = "#ffffff" + + fg[ACTIVE] = "#ffffff" + text[ACTIVE] = "#ffffff" + bg[ACTIVE] = "#666699" + base[ACTIVE] = "#666699" + + fg[SELECTED] = "#000033" + text[SELECTED] = "#000033" + bg[SELECTED] = "#ffffff" + base[SELECTED] = "#ffcccc" + +@gtk_stock_icons_rc@ +@panel_stock_icons_rc@ +@media_stock_icons_rc@ +@capplet_stock_icons_rc@ +@marco_stock_icons_rc@ + +#caja improvements + +style "caja-location" +{ + bg[NORMAL] = mix (0.60, shade (1.05, "#000033"), "#000033") +} + +widget "*.caja-extra-view-widget" style : highest "caja-location" + diff --git a/desktop-themes/ContrastHighInverse/index.theme.in b/desktop-themes/ContrastHighInverse/index.theme.in index 9d42e23b..1af9b7ca 100644 --- a/desktop-themes/ContrastHighInverse/index.theme.in +++ b/desktop-themes/ContrastHighInverse/index.theme.in @@ -7,4 +7,4 @@ Encoding=UTF-8 [X-GNOME-Metatheme] GtkTheme=ContrastHighInverse IconTheme=ContrastHigh -MetacityTheme=Atantla +MetacityTheme=ContrastHighInverse diff --git a/desktop-themes/ContrastHighInverse/metacity-1/Makefile.am b/desktop-themes/ContrastHighInverse/metacity-1/Makefile.am new file mode 100644 index 00000000..0743a759 --- /dev/null +++ b/desktop-themes/ContrastHighInverse/metacity-1/Makefile.am @@ -0,0 +1,7 @@ +THEME_NAME=ContrastHighInverse + +themedir = $(datadir)/themes/$(THEME_NAME)/metacity-1 + +theme_DATA = metacity-theme-1.xml + +EXTRA_DIST = $(theme_DATA) diff --git a/desktop-themes/ContrastHighInverse/metacity-1/metacity-theme-1.xml b/desktop-themes/ContrastHighInverse/metacity-1/metacity-theme-1.xml new file mode 100644 index 00000000..d40a353b --- /dev/null +++ b/desktop-themes/ContrastHighInverse/metacity-1/metacity-theme-1.xml @@ -0,0 +1,350 @@ + + + + ContrastHighInverse + Havoc Pennington <hp@redhat.com> + Â Havoc Pennington, 2002 + February 3, 2002 + Simple low-overhead default theme that comes with Metacity. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <icon x="(0 `max` (width-title_width-mini_icon_width-IconTitleSpacing)) / 2" + y="(height-mini_icon_height) / 2" + width="mini_icon_width" height="mini_icon_height"/> +</draw_ops> + +<draw_ops name="title_text_focused_no_icon"> + <clip x="0" y="0" width="width-SpacerWidth" height="height"/> + <title color="gtk:fg[SELECTED]" + x="(0 `max` (width-title_width)) / 2" + y="((height - title_height) / 2) `max` 0"/> +</draw_ops> + +<draw_ops name="title_text_with_icon"> + <clip x="0" y="0" width="width-SpacerWidth" height="height"/> + <title color="gtk:fg[NORMAL]" + x="(0 `max` (width-title_width-mini_icon_width-IconTitleSpacing)) / 2 + mini_icon_width + IconTitleSpacing" + y="((height - title_height) / 2) `max` 0"/> + <icon x="(0 `max` (width-title_width-mini_icon_width-IconTitleSpacing)) / 2" + y="(height-mini_icon_height) / 2" + width="mini_icon_width" height="mini_icon_height"/> +</draw_ops> + +<draw_ops name="title_text_no_icon"> + <clip x="0" y="0" width="width-SpacerWidth" height="height"/> + <title color="gtk:fg[NORMAL]" + x="(0 `max` (width-title_width)) / 2" + y="((height - title_height) / 2) `max` 0"/> +</draw_ops> + +<draw_ops name="title_normal"> + <include name="title_spacer"/> + <include name="title_text_with_icon"/> +</draw_ops> + +<draw_ops name="title_focused"> + <include name="title_gradient"/> + <include name="title_spacer"/> + <include name="title_text_focused_with_icon"/> +</draw_ops> + +<draw_ops name="title_utility"> + <include name="title_spacer"/> + <include name="title_text_no_icon"/> +</draw_ops> + +<draw_ops name="title_utility_focused"> + <include name="title_gradient"/> + <include name="title_spacer"/> + <include name="title_text_focused_no_icon"/> +</draw_ops> + +<frame_style name="normal_unfocused" geometry="normal"> + <piece position="entire_background" draw_ops="background_unfocused"/> + <piece position="title" draw_ops="title_normal"/> + + <!-- we don't specify for prelight, so normal is used --> + <button function="left_left_background" state="pressed" draw_ops="button_pressed_bg"/> + <button function="left_middle_background" state="pressed" draw_ops="button_pressed_bg"/> + <button function="left_right_background" state="pressed" draw_ops="button_pressed_bg"/> + <button function="right_left_background" state="pressed" draw_ops="button_pressed_bg"/> + <button function="right_middle_background" state="pressed" draw_ops="button_pressed_bg"/> + <button function="right_right_background" state="pressed" draw_ops="button_pressed_bg"/> + + <button function="close" state="normal" draw_ops="close_button"/> + <button function="close" state="pressed" draw_ops="close_button_pressed"/> + <button function="minimize" state="normal" draw_ops="minimize_button"/> + <button function="minimize" state="pressed" draw_ops="minimize_button_pressed"/> + <button function="maximize" state="normal" draw_ops="maximize_button"/> + <button function="maximize" state="pressed" draw_ops="maximize_button_pressed"/> + <button function="menu" state="normal" draw_ops="menu_button"/> + <button function="menu" state="pressed" draw_ops="menu_button_pressed"/> +</frame_style> + +<frame_style name="normal_focused" geometry="normal" parent="normal_unfocused"> + <piece position="entire_background" draw_ops="focus_background"/> + <piece position="title" draw_ops="title_focused"/> +</frame_style> + +<frame_style name="maximized_unfocused" geometry="normal_small_borders" parent="normal_unfocused"> + <piece position="entire_background" draw_ops="blank"/> + <button function="maximize" state="normal" draw_ops="restore_button"/> + <button function="maximize" state="pressed" draw_ops="restore_button_pressed"/> +</frame_style> + +<frame_style name="maximized_focused" geometry="normal_small_borders" parent="normal_focused"> + <piece position="entire_background" draw_ops="focus_outline"/> + <button function="maximize" state="normal" draw_ops="restore_button"/> + <button function="maximize" state="pressed" draw_ops="restore_button_pressed"/> +</frame_style> + +<frame_style name="utility_unfocused" geometry="utility" parent="normal_unfocused"> + <piece position="title" draw_ops="title_utility"/> +</frame_style> + +<frame_style name="utility_focused" geometry="utility" parent="normal_focused"> + <piece position="title" draw_ops="title_utility_focused"/> +</frame_style> + +<frame_style name="border" geometry="border" parent="normal_unfocused"> + <piece position="entire_background" draw_ops="outer_bevel"/> + <piece position="title" draw_ops="blank"/> +</frame_style> + +<frame_style_set name="normal"> +<frame focus="yes" state="normal" resize="both" style="normal_focused"/> +<frame focus="no" state="normal" resize="both" style="normal_unfocused"/> +<frame focus="yes" state="maximized" style="maximized_focused"/> +<frame focus="no" state="maximized" style="maximized_unfocused"/> +<frame focus="yes" state="shaded" style="normal_focused"/> +<frame focus="no" state="shaded" style="normal_unfocused"/> +<frame focus="yes" state="maximized_and_shaded" style="maximized_focused"/> +<frame focus="no" state="maximized_and_shaded" style="maximized_unfocused"/> +</frame_style_set> + +<frame_style_set name="utility" parent="normal"> +<frame focus="yes" state="normal" resize="both" style="utility_focused"/> +<frame focus="no" state="normal" resize="both" style="utility_unfocused"/> +<!-- this is a bunch of crack since utility windows shouldn't be maximized --> +<frame focus="yes" state="maximized" style="utility_focused"/> +<frame focus="no" state="maximized" style="utility_unfocused"/> +<frame focus="yes" state="shaded" style="utility_focused"/> +<frame focus="no" state="shaded" style="utility_unfocused"/> +<frame focus="yes" state="maximized_and_shaded" style="utility_focused"/> +<frame focus="no" state="maximized_and_shaded" style="utility_unfocused"/> +</frame_style_set> + +<frame_style_set name="border"> +<frame focus="yes" state="normal" resize="both" style="border"/> +<frame focus="no" state="normal" resize="both" style="border"/> +<frame focus="yes" state="maximized" style="border"/> +<frame focus="no" state="maximized" style="border"/> +<frame focus="yes" state="shaded" style="border"/> +<frame focus="no" state="shaded" style="border"/> +<frame focus="yes" state="maximized_and_shaded" style="border"/> +<frame focus="no" state="maximized_and_shaded" style="border"/> +</frame_style_set> + +<window type="normal" style_set="normal"/> +<window type="dialog" style_set="normal"/> +<window type="modal_dialog" style_set="normal"/> +<window type="menu" style_set="normal"/> +<window type="utility" style_set="utility"/> +<window type="border" style_set="border"/> + +<menu_icon function="close" state="normal" draw_ops="close_button"/> +<menu_icon function="maximize" state="normal" draw_ops="maximize_button"/> +<menu_icon function="unmaximize" state="normal" draw_ops="restore_button"/> +<menu_icon function="minimize" state="normal" draw_ops="minimize_button"/> + +</metacity_theme> -- cgit v1.2.1