~costales/folder-color/trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
Folder Color © 2012-2017 Marcos Alvarez Costales
================================================

WHAT IS IT?
===========
A file browser extension for choosing the color of a folder.




HOW DO I INSTALL & RUN IT?
==========================
From a PPA:
    # add-apt-repository ppa:costales/folder-color
    # apt-get update && sudo apt-get install folder-color
From the code (take a look to the dependencies):
    $ bzr branch lp:folder-color && cd folder-color && sudo python3 setup.py install --prefix=/usr

Then, restart Nautilus
    $ nautilus -q
You'll need also to refresh the system icons:
    # gtk-update-icon-cache /usr/share/icons/Humanity/

    


DEPENDENCIES
============
For Nautilus:
    python-nautilus, nautilus
For Nemo:
    python-nemo, nemo
For Caja:
    python-caja, caja


    

HOW TO CREATE A NEW THEME
=========================
Folder color will work (you'll see the entry menu) if AT LEAST exists the icon: "blue-color".
You can use any compatible icon format (like SVG or PNG).



1. FOLDER COLORS (MANDATORY)
Icon nomenclature: folder-<color>.
<color>: brown, blue, green, grey, orange, pink, red, purple, yellow, cyan, black, violet, magenta

The unique mandatory color is blue. The other are optionals.

For example: Blue folder color would be: /usr/share/icons/<MyAwesomeTheme>/48x48/<places>/folder-blue.svg

OTHER ICONS:
The entries menu will use these icons from the default theme: gtk-edit & undo



2. DEFAULT FOLDERS (OPTIONAL)
These folders have icons inside. They are: Desktop, Documents, Downloads, Music, Pictures, Public, Templates, Videos.

Icon nomenclature: folder-<color>-<emblem>
<color>: brown, blue, green, grey, orange, pink, red, purple, yellow, cyan, black, violet, magenta
<emblem>: desktop, documents, downloads, music, pictures, public, templates, videos

For example, the blue 'Pictures' folder would be: /usr/share/icons/<MyAwesomeTheme>/48x48/<places>/folder-blue-pictures.svg



3. EMBLEMS (OPTIONAL)
Folder Color will use any of these standard emblems from the current theme:
 - emblem-favorite
 - emblem-important
 - emblem-new
 - emblem-urgent



4. CUSTOM COLOR (OPTIONAL)
Icon nomenclature: folder-custom.svg.

It has to be SVG format.

This icon is not using colors, it's using 3 constants inside the file. Then, when the user choose a custom color, Folder Color is replacing those constants as:
    #value_light  = Color selected by user in hexadecimal.
    #value_middle = Color selected by user in hexadecimal - 2500
    #value_dark   = Color selected by user in hexadecimal - 5000

Example: http://bazaar.launchpad.net/~costales/folder-color/trunk/view/head:/icons/Humanity/places/48/folder_custom.svg



5. CUSTOM COLOR FOR DEFAULT FOLDERS (OPTIONAL)
Icon nomenclature: folder-custom-<emblem>.svg
<emblem>: desktop, documents, downloads, music, pictures, public, templates, videos

They has to be SVG format.

Icon on Folder Color entry menu will use the 'gtk-edit' icon from default theme.

For example, the 'Pictures' folder would be: /usr/share/icons/<MyAwesomeTheme>/48x48/<places>/folder-custom-pictures.svg



6. ALL RESOLUTIONS (OPTIONAL)
Reply the previous sections for all resolutions (not only 48px) in points 1, 2 and 3.








HOW TO CHECK YOUR NEW THEME?
Copy your icons into:
    ~/.icons/<your_theme>/
After install them, remember to refresh your theme:
    # gtk-update-icon-cache ~/.icons/<your_theme>
Set your theme as default system theme.
And restart your file browser:
    $ [nautilus|caja|nemo] -q




MY PERSONAL RECOMMENDATION
Make all the icons is a really big work.
I'd recommend you to create just the icons of point 1. If you are full of beans, create the other.




DOUBTS?
Do you have any doubt or problem? Contact me here: https://launchpad.net/~costales/+contactuser
I'll help you :)




LICENSES
====================
Folder Color code is licensed under the GPL v3.
http://www.gnu.org/licenses

The icons are licensed under GPL v2 and v3. Folder Color is mixing 2 themes:
- RAVEfinity artwork http://www.ravefinity.com/
- GNOME artwork      http://commons.wikimedia.org/wiki/GNOME_Desktop_icons