Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
petrucci4prez committed Oct 11, 2015
0 parents commit 4f883c5
Show file tree
Hide file tree
Showing 543 changed files with 9,128 additions and 0 deletions.
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
##CinnXP
make Cinnamon look and feel like the venerable Windows XP interface

Current version: 0.1

based on Mint-XP (fmcgorenc) and Adwaita

####Theme includes:
* cinnamon
* gtk-2.0
* gtk-3.0
* metacity-1
* cursor

####Requirements:
* Cinnamon 2.6
* Gtk 3.16
* Pixmap and Adwaita gtk2 engines
* Ruby Sass (for building css from source)

####Install instructions:

1. Run ./compile-theme in top-level directory. The result will be a file called "pkg"
2. Copy CinnXP directories for icons/themes into system wide directories (/usr/share/icons and /usr/share/themes) or user-wide directories (~/.icons and ~/.themes). Create directories as necessary
3. In ~/.icons, make symbolic link called "default" and point it to the CinnXP cursor directory (this is required for QT apps and probably other stuff)
4. move menu applet to the first position on the panel and open configuration; point icon to CinnXP/cinnamon/menu.png and change text to "start"

####Tips:
* QT apps have a few unavoidable bugs using this theme. If something "less buggy" is desired, open terminal, type "qtconfig-qt4" and select "Windows" under GUI style (this will look Win98-ish but at least it won't have bugs)
* LibreOffice 5.0 and above will use gtk3 by default (sorta)...to get the gtk2 theme add "export SAL\_USE_VCLPLUGIN=gtk" to ~/.bashrc
* Do anything else to make it look more XP-like. Disable effects, disable hinting and antialiasing, change wallpaper to serene green field, etc
143 changes: 143 additions & 0 deletions complile-theme
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
#! /bin/bash

pkg_dir="pkg"/CinnXP
icon_dir="$PWD"/"$pkg_dir"/usr/share/icons/CinnXP
theme_dir="$PWD"/"$pkg_dir"/usr/share/themes/CinnXP
theme_src="$PWD"/theme-src

######################
### BUILD CURSOR THEME
######################

echo "Now building cursor theme
"

if [ ! -d "$icon_dir" ]; then
mkdir -p "$icon_dir"/cursors
fi

cd cursor-src

#generate cursor files
for i in *.cursor
do
filename=${i%.cursor}
xcursorgen "$i" "$icon_dir"/cursors/"$filename"
done

cp cursor.theme "$icon_dir"

cd "$icon_dir"/cursors

#link remaining cursor icons
ln -s sb_v_double_arrow 00008160000006810000408080010102
ln -s sb_h_double_arrow 028006030e0e7ebffc7f7070c0600140
ln -s crossed_circle 03b6e0fcb3499374a867c041f52298f0
ln -s left_ptr_watch 08e8e1c95fe2fc01f976f1e063a24ccd
ln -s copy 1081e37283d90000800003c07f3ef6bf
ln -s sb_h_double_arrow 14fef782d02440884392942c11205230
ln -s sb_v_double_arrow 2870a09082c103050810ffdffffe0204
ln -s link 3085a0e285430894940527032f8b26df
ln -s left_ptr_watch 3ecb610c1bf2410f44200f48c40d3599
ln -s move 4498f0e0c1937ffe01fd06f973665830
ln -s help 5c6cd98b3f3ebcb1f9c7f1c204630408
ln -s copy 6407b0e94181790501fd1e167b474872
ln -s link 640fb0e74195791501fd1ed57b41487f
ln -s move 9081237383d90e509aa00f00170e968f
ln -s hand 9d800788f1b08800ae810202380a0822
ln -s left_ptr arrow
ln -s top_left_corner bd_double_arrow
ln -s top_right_corner bottom_left_corner
ln -s top_left_corner bottom_right_corner
ln -s sb_v_double_arrow bottom_side
ln -s sb_v_double_arrow bottom_tee
ln -s top_left_corner c7088f0f3e6c8088236ef8e1e3e70000
ln -s crosshair cross
ln -s crosshair cross_reverse
ln -s help d9ce0ab605698f320427677b458ad60b
ln -s crosshair diamond_cross
ln -s hand dnd-none
ln -s target dotbox
ln -s target dot_box_mask
ln -s sb_v_double_arrow double_arrow
ln -s right_ptr draft_large
ln -s right_ptr draft_small
ln -s target draped_box
ln -s hand e29285e634086352946a0e7090d73106
ln -s top_right_corner fcf1c3c7cd4491d801f1e1c78f100000
ln -s top_right_corner fd_double_arrow
ln -s hand fleur
ln -s hand grab
ln -s hand grabbing
ln -s hand hand1
ln -s hand hand2
ln -s sb_h_double_arrow h_double_arrow
ln -s target icon
ln -s sb_h_double_arrow left_side
ln -s sb_h_double_arrow left_tee
ln -s top_right_corner ll_angle
ln -s top_left_corner lr_angle
ln -s crossed_circle pirate
ln -s help question_arrow
ln -s sb_h_double_arrow right_side
ln -s sb_h_double_arrow right_tee
ln -s crosshair tcross
ln -s left_ptr top_left_arrow
ln -s sb_v_double_arrow top_side
ln -s sb_v_double_arrow top_tee
ln -s top_left_corner ul_angle
ln -s top_right_corner ur_angle
ln -s sb_v_double_arrow v_double_arrow
ln -s wait watch
ln -s crossed_circle X_cursor
ln -s ibeam xterm

cd ..

######################################
### BUILD GTK/CINNAMON/METACITY THEMES
######################################

echo "Now building gtk, cinnamon, and metacity themes
"

if [ ! -d "$theme_dir" ]; then
mkdir -p "$theme_dir"/gtk-3.0
fi

cd "$theme_src"/gtk-3.0

#ensure gtk-contained is up to date
rm gtk-contained.css
./parse-sass.sh

#change compiled files here (currently uses all png images and css files in gtk-3.0)
files=$(find . -type f \( -name "*.png" -or -name "*gtk-contained.css" \))

#build xml file for gtk.gresource
files=${files//.$'\n'/}
files=${files//'./'/' <file>'}
files=${files//$'\n'/'</file>'$'\n'}
files="$files"'</file>'$'\n'

resource_path="/org/gnome/CinnXP"
xml_path="/tmp/gresources.xml"

header="<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<gresources>
<gresource prefix=\"$resource_path\">
"
footer=" </gresource>
</gresources>"

echo "$header$files$footer" > "$xml_path"

#build gtk3 resources file
glib-compile-resources --target="$theme_dir"/gtk-3.0/gtk.gresource /tmp/gresources.xml

echo '@import url("resource:///org/gnome/CinnXP/gtk-contained.css");' > "$theme_dir"/gtk-3.0/gtk.css

#~ rm "$xml_path"

#copy everything else
cp -r "$theme_src"/{gtk-2.0,metacity-1,index.theme,cinnamon} "$theme_dir"
1 change: 1 addition & 0 deletions cursor-src/all-scroll.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 11 12 all-scroll.png
Binary file added cursor-src/all-scroll.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions cursor-src/circle.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 0 1 circle.png
Binary file added cursor-src/circle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions cursor-src/copy.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 0 1 copy.png
Binary file added cursor-src/copy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions cursor-src/crossed_circle.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 13 14 crossed_circle.png
Binary file added cursor-src/crossed_circle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions cursor-src/crosshair.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 14 14 crosshair.png
Binary file added cursor-src/crosshair.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions cursor-src/cursor.theme
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[Icon Theme]
Name=CinnXP
Comment=Windows XP Cursor Theme
1 change: 1 addition & 0 deletions cursor-src/dnd-ask.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 6 1 dnd-ask.png
Binary file added cursor-src/dnd-ask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions cursor-src/dnd-copy.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 6 1 dnd-copy.png
Binary file added cursor-src/dnd-copy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions cursor-src/dnd-link.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 6 1 dnd-link.png
Binary file added cursor-src/dnd-link.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions cursor-src/dnd-move.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 6 1 dnd-move.png
Binary file added cursor-src/dnd-move.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions cursor-src/hand.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 6 1 hand.png
Binary file added cursor-src/hand.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions cursor-src/help.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 10 12 help.png
Binary file added cursor-src/help.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions cursor-src/ibeam.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 14 14 ibeam.png
Binary file added cursor-src/ibeam.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions cursor-src/left_ptr.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 0 1 left_ptr.png
Binary file added cursor-src/left_ptr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions cursor-src/left_ptr_help.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 0 1 left_ptr_help.png
Binary file added cursor-src/left_ptr_help.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions cursor-src/left_ptr_watch.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 0 1 left_ptr_watch.png
Binary file added cursor-src/left_ptr_watch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions cursor-src/link.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 0 1 link.png
Binary file added cursor-src/link.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions cursor-src/move.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 13 14 move.png
Binary file added cursor-src/move.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions cursor-src/pencil.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 1 2 pencil.png
Binary file added cursor-src/pencil.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions cursor-src/plus.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 13 13 plus.png
Binary file added cursor-src/plus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions cursor-src/pointer-move.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 0 1 pointer-move.png
Binary file added cursor-src/pointer-move.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions cursor-src/right_ptr.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 18 1 right_ptr.png
Binary file added cursor-src/right_ptr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions cursor-src/sb_down_arrow.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 14 14 sb_down_arrow.png
Binary file added cursor-src/sb_down_arrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions cursor-src/sb_h_double_arrow.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 13 14 sb_h_double_arrow.png
Binary file added cursor-src/sb_h_double_arrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions cursor-src/sb_left_arrow.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 13 14 sb_left_arrow.png
Binary file added cursor-src/sb_left_arrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions cursor-src/sb_right_arrow.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 13 14 sb_right_arrow.png
Binary file added cursor-src/sb_right_arrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions cursor-src/sb_up_arrow.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 14 14 sb_up_arrow.png
Binary file added cursor-src/sb_up_arrow.png
1 change: 1 addition & 0 deletions cursor-src/sb_v_double_arrow.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 14 14 sb_v_double_arrow.png
Binary file added cursor-src/sb_v_double_arrow.png
1 change: 1 addition & 0 deletions cursor-src/target.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 11 12 target.png
Binary file added cursor-src/target.png
1 change: 1 addition & 0 deletions cursor-src/top_left_corner.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 14 14 top_left_corner.png
Binary file added cursor-src/top_left_corner.png
1 change: 1 addition & 0 deletions cursor-src/top_right_corner.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 14 14 top_right_corner.png
Binary file added cursor-src/top_right_corner.png
1 change: 1 addition & 0 deletions cursor-src/vertical-text.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 14 14 vertical-text.png
Binary file added cursor-src/vertical-text.png
1 change: 1 addition & 0 deletions cursor-src/wait.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 14 14 wait.png
Binary file added cursor-src/wait.png
1 change: 1 addition & 0 deletions cursor-src/zoom-in.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 8 8 zoom-in.png
Binary file added cursor-src/zoom-in.png
1 change: 1 addition & 0 deletions cursor-src/zoom-out.cursor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28 8 8 zoom-out.png
Binary file added cursor-src/zoom-out.png
8 changes: 8 additions & 0 deletions known-issues
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
gtk3:
need dark border around menus
file chooser: treeview needs better spacing, pathbar has first/middle/last child mixup
blue border under titlebar in evince needs to go away
nemo pathbar has first/middle/last child issues

cinnamon:
sometimes notifications show weird inset border around text when in applet popup
Binary file added theme-src/cinnamon/applet-button-active-hover.png
Binary file added theme-src/cinnamon/applet-button-active.png
Binary file added theme-src/cinnamon/applet-button-hover.png
Binary file added theme-src/cinnamon/applet-button.png
Binary file added theme-src/cinnamon/bg-1.png
Binary file added theme-src/cinnamon/big-blue-bg.png
Binary file added theme-src/cinnamon/button-focus.png
Binary file added theme-src/cinnamon/button-hover.png
Binary file added theme-src/cinnamon/button-insensitive.png
Binary file added theme-src/cinnamon/button-pressed.png
Binary file added theme-src/cinnamon/button.png
21 changes: 21 additions & 0 deletions theme-src/cinnamon/calendar-arrow-left-hover.svg
21 changes: 21 additions & 0 deletions theme-src/cinnamon/calendar-arrow-left.svg
21 changes: 21 additions & 0 deletions theme-src/cinnamon/calendar-arrow-right-hover.svg
21 changes: 21 additions & 0 deletions theme-src/cinnamon/calendar-arrow-right.svg
Binary file added theme-src/cinnamon/checkbox-focus.png
Binary file added theme-src/cinnamon/checkbox-off-focus.png
Binary file added theme-src/cinnamon/checkbox-off.png
Binary file added theme-src/cinnamon/checkbox.png
Loading

0 comments on commit 4f883c5

Please sign in to comment.