Skip to content

Commit e628edd

Browse files
authored
Update README.md - moved configuration section down
1 parent e2bb35b commit e628edd

File tree

1 file changed

+82
-81
lines changed

1 file changed

+82
-81
lines changed

README.md

Lines changed: 82 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -90,87 +90,6 @@ To look at some included example animations:
9090
![cm-doge](https://user-images.githubusercontent.com/261501/210064365-e9303bee-7842-4068-b356-cd314341098b.gif)
9191
![bsd-color-new](https://user-images.githubusercontent.com/261501/210064354-5c1c2adc-06a3-43c5-8e21-30b1a81db315.gif)
9292

93-
## CONFIGURATION
94-
95-
You can create a custom startup file where you can set a theme.
96-
97-
98-
If you did not already do so during installation, you can install a sample configuration and some themes into ~/.durdraw/ with the command:
99-
100-
```
101-
./installconf.sh
102-
```
103-
104-
This will place durdraw.ini into ~/.durdraw/ and the themes into ~/.durdraw/themes/.
105-
106-
Here is an example durdraw.ini file:
107-
108-
<pre>
109-
; Durdraw 0.20 Configuration File
110-
[Theme]
111-
theme-16: ~/.durdraw/themes/purpledrank-16.dtheme.ini
112-
theme-256: ~/.durdraw/themes/mutedform-256.dtheme.ini
113-
</pre>
114-
115-
The option 'theme-16' sets the path to the theme file used in 16-color mode, and 'theme-256' sets the theme file used for 256-color mode.
116-
117-
Note that you can also load a custom theme file using the --theme command-line argument and passing it the path to a theme file, or disable themes entirely with the --notheme command line option.
118-
119-
Here is an example 16-color theme:
120-
121-
<pre>
122-
[Theme-16]
123-
name: 'Purple Drank'
124-
mainColor: 6
125-
clickColor: 3
126-
borderColor: 6
127-
clickHighlightColor: 5
128-
notificationColor: 4
129-
promptColor: 4
130-
</pre>
131-
132-
and a 256-color theme:
133-
134-
<pre>
135-
[Theme-256]
136-
name: 'Muted Form'
137-
mainColor: 104
138-
clickColor: 37
139-
borderColor: 236
140-
clickHighlightColor: 15
141-
notificationColor: 87
142-
promptColor: 189
143-
menuItemColor: 189
144-
menuTitleColor: 159
145-
menuBorderColor: 24
146-
</pre>
147-
148-
The colors and theme options are as follows:
149-
150-
colors for 16-color mode:
151-
1 black
152-
2 blue
153-
3 green
154-
4 cyan
155-
5 red
156-
6 magenta
157-
7 yellow
158-
8 white
159-
160-
color codes numbers for 256-color mode can be found in Durdraw's 256-color selector.
161-
162-
```
163-
mainColor: the color of most text
164-
clickColor: the color of buttons (clickable items)
165-
clickHighlightColor: the color the button changes to for a moment when clicked
166-
borderColor: the color of the border around a drawing
167-
notificationColor: the color of notification messages
168-
promptColor: the color of user prompt messages
169-
menuItemColor: the color of menu items
170-
menuTitleColor: the color of menu titles
171-
menuBorderColor: the color of the border around menus
172-
```
173-
17493
## COMMAND LINE USAGE
17594

17695
You can play a .dur file or series of .dur files with:
@@ -262,6 +181,88 @@ Menu Number | Delay Range Tools Frame | Pause| Frame
262181
[Menu] F: 1/8 <FPS>: 8 D: 0.00 R: 1/8 [Move] |< << |> >> >|
263182
```
264183

184+
## CONFIGURATION
185+
186+
You can create a custom startup file where you can set a theme.
187+
188+
189+
If you did not already do so during installation, you can install a sample configuration and some themes into ~/.durdraw/ with the command:
190+
191+
```
192+
./installconf.sh
193+
```
194+
195+
This will place durdraw.ini into ~/.durdraw/ and the themes into ~/.durdraw/themes/.
196+
197+
Here is an example durdraw.ini file:
198+
199+
<pre>
200+
; Durdraw 0.20 Configuration File
201+
[Theme]
202+
theme-16: ~/.durdraw/themes/purpledrank-16.dtheme.ini
203+
theme-256: ~/.durdraw/themes/mutedform-256.dtheme.ini
204+
</pre>
205+
206+
The option 'theme-16' sets the path to the theme file used in 16-color mode, and 'theme-256' sets the theme file used for 256-color mode.
207+
208+
Note that you can also load a custom theme file using the --theme command-line argument and passing it the path to a theme file, or disable themes entirely with the --notheme command line option.
209+
210+
Here is an example 16-color theme:
211+
212+
<pre>
213+
[Theme-16]
214+
name: 'Purple Drank'
215+
mainColor: 6
216+
clickColor: 3
217+
borderColor: 6
218+
clickHighlightColor: 5
219+
notificationColor: 4
220+
promptColor: 4
221+
</pre>
222+
223+
and a 256-color theme:
224+
225+
<pre>
226+
[Theme-256]
227+
name: 'Muted Form'
228+
mainColor: 104
229+
clickColor: 37
230+
borderColor: 236
231+
clickHighlightColor: 15
232+
notificationColor: 87
233+
promptColor: 189
234+
menuItemColor: 189
235+
menuTitleColor: 159
236+
menuBorderColor: 24
237+
</pre>
238+
239+
The colors and theme options are as follows:
240+
241+
colors for 16-color mode:
242+
1 black
243+
2 blue
244+
3 green
245+
4 cyan
246+
5 red
247+
6 magenta
248+
7 yellow
249+
8 white
250+
251+
color codes numbers for 256-color mode can be found in Durdraw's 256-color selector.
252+
253+
```
254+
mainColor: the color of most text
255+
clickColor: the color of buttons (clickable items)
256+
clickHighlightColor: the color the button changes to for a moment when clicked
257+
borderColor: the color of the border around a drawing
258+
notificationColor: the color of notification messages
259+
promptColor: the color of user prompt messages
260+
menuItemColor: the color of menu items
261+
menuTitleColor: the color of menu titles
262+
menuBorderColor: the color of the border around menus
263+
```
264+
265+
265266
## OTHER TIPS
266267

267268
* To use themes, copy durdraw.ini to ~/.durdraw/ and edit it. Durdraw

0 commit comments

Comments
 (0)