13 |
14 | ## Usage
15 |
16 | **Note that this will be the process until [#150](https://github.com/termux/termux-styling/pull/150) is merged into the main repo and a new release is created!**
17 | 1. **Uninstall Termux and any addons!** Your Termux settings will be reset.
18 | 2. Download and install the latest debug build of Termux [here](https://github.com/termux/termux-app/actions/workflows/debug_build.yml).
19 | > Go to the top result, then download `termux-app_v0.xxx+xxx-github-debug_arm64-v8a`
20 | 3. Download and install the **[Termux:Styles Rosé Pine build ](https://github.com/rose-pine/termux-styling/releases/download/v0.30-2/app-debug.apk)** from the releases on this repo
21 | 4. In Termux, press and hold and tap Style
22 | 5. Tap CHOOSE COLOR
23 | 6. Scroll to the bottom of the list
24 | 7. Tap `Rosé Pine`/`Rosé Pine Moon`/`Rosé Pine Dawn`
25 | 8. Optionally, go back, tap CHOOSE FONT, and tap `Cartograph CF`
26 |
27 | ## Gallery
28 |
29 | Fetch featured below is [NerdFetch](https://github.com/thatonecalculator/nerdfetch)
30 |
31 | 
32 |
33 | 
34 |
35 | 
36 |
37 | ## Thanks to
38 |
39 | - [ThatOneCalculator](https://github.com/thatonecalculator)
40 |
--------------------------------------------------------------------------------
/app/src/main/assets/fonts/Fantasque.txt:
--------------------------------------------------------------------------------
1 | A font family with a great monospaced variant for programmers.
2 |
3 | https://fontlibrary.org/en/font/fantasque-sans-mono
4 |
5 | Copyright (c) 2013-2017, Jany Belluz (jany.belluz@hotmail.fr)
6 |
7 | This Font Software is licensed under the SIL Open Font License, Version 1.1.
8 | This license is copied below, and is also available with a FAQ at:
9 | http://scripts.sil.org/OFL
10 |
11 |
12 | -----------------------------------------------------------
13 | SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
14 | -----------------------------------------------------------
15 |
16 | PREAMBLE
17 | The goals of the Open Font License (OFL) are to stimulate worldwide
18 | development of collaborative font projects, to support the font creation
19 | efforts of academic and linguistic communities, and to provide a free and
20 | open framework in which fonts may be shared and improved in partnership
21 | with others.
22 |
23 | The OFL allows the licensed fonts to be used, studied, modified and
24 | redistributed freely as long as they are not sold by themselves. The
25 | fonts, including any derivative works, can be bundled, embedded,
26 | redistributed and/or sold with any software provided that any reserved
27 | names are not used by derivative works. The fonts and derivatives,
28 | however, cannot be released under any other type of license. The
29 | requirement for fonts to remain under this license does not apply
30 | to any document created using the fonts or their derivatives.
31 |
32 | DEFINITIONS
33 | "Font Software" refers to the set of files released by the Copyright
34 | Holder(s) under this license and clearly marked as such. This may
35 | include source files, build scripts and documentation.
36 |
37 | "Reserved Font Name" refers to any names specified as such after the
38 | copyright statement(s).
39 |
40 | "Original Version" refers to the collection of Font Software components as
41 | distributed by the Copyright Holder(s).
42 |
43 | "Modified Version" refers to any derivative made by adding to, deleting,
44 | or substituting -- in part or in whole -- any of the components of the
45 | Original Version, by changing formats or by porting the Font Software to a
46 | new environment.
47 |
48 | "Author" refers to any designer, engineer, programmer, technical
49 | writer or other person who contributed to the Font Software.
50 |
51 | PERMISSION & CONDITIONS
52 | Permission is hereby granted, free of charge, to any person obtaining
53 | a copy of the Font Software, to use, study, copy, merge, embed, modify,
54 | redistribute, and sell modified and unmodified copies of the Font
55 | Software, subject to the following conditions:
56 |
57 | 1) Neither the Font Software nor any of its individual components,
58 | in Original or Modified Versions, may be sold by itself.
59 |
60 | 2) Original or Modified Versions of the Font Software may be bundled,
61 | redistributed and/or sold with any software, provided that each copy
62 | contains the above copyright notice and this license. These can be
63 | included either as stand-alone text files, human-readable headers or
64 | in the appropriate machine-readable metadata fields within text or
65 | binary files as long as those fields can be easily viewed by the user.
66 |
67 | 3) No Modified Version of the Font Software may use the Reserved Font
68 | Name(s) unless explicit written permission is granted by the corresponding
69 | Copyright Holder. This restriction only applies to the primary font name as
70 | presented to the users.
71 |
72 | 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
73 | Software shall not be used to promote, endorse or advertise any
74 | Modified Version, except to acknowledge the contribution(s) of the
75 | Copyright Holder(s) and the Author(s) or with their explicit written
76 | permission.
77 |
78 | 5) The Font Software, modified or unmodified, in part or in whole,
79 | must be distributed entirely under this license, and must not be
80 | distributed under any other license. The requirement for fonts to
81 | remain under this license does not apply to any document created
82 | using the Font Software.
83 |
84 | TERMINATION
85 | This license becomes null and void if any of the above conditions are
86 | not met.
87 |
88 | DISCLAIMER
89 | THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
90 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
91 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
92 | OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
93 | COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
94 | INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
95 | DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
96 | FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
97 | OTHER DEALINGS IN THE FONT SOFTWARE.
98 |
--------------------------------------------------------------------------------
/app/src/main/assets/fonts/FiraCode.txt:
--------------------------------------------------------------------------------
1 | Monospaced font with programming ligatures by Nikita Prokopov.
2 |
3 | https://github.com/tonsky/FiraCode
4 |
5 | Copyright (c) 2014, Nikita Prokopov http://tonsky.me
6 | with Reserved Font Name Fira Code.
7 |
8 | Copyright (c) 2014, Mozilla Foundation https://mozilla.org/
9 | with Reserved Font Name Fira Sans.
10 |
11 | Copyright (c) 2014, Mozilla Foundation https://mozilla.org/
12 | with Reserved Font Name Fira Mono.
13 |
14 | Copyright (c) 2014, Telefonica S.A.
15 |
16 | This Font Software is licensed under the SIL Open Font License, Version 1.1.
17 | This license is copied below, and is also available with a FAQ at:
18 | http://scripts.sil.org/OFL
19 |
20 |
21 | -----------------------------------------------------------
22 | SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
23 | -----------------------------------------------------------
24 |
25 | PREAMBLE
26 | The goals of the Open Font License (OFL) are to stimulate worldwide
27 | development of collaborative font projects, to support the font creation
28 | efforts of academic and linguistic communities, and to provide a free and
29 | open framework in which fonts may be shared and improved in partnership
30 | with others.
31 |
32 | The OFL allows the licensed fonts to be used, studied, modified and
33 | redistributed freely as long as they are not sold by themselves. The
34 | fonts, including any derivative works, can be bundled, embedded,
35 | redistributed and/or sold with any software provided that any reserved
36 | names are not used by derivative works. The fonts and derivatives,
37 | however, cannot be released under any other type of license. The
38 | requirement for fonts to remain under this license does not apply
39 | to any document created using the fonts or their derivatives.
40 |
41 | DEFINITIONS
42 | "Font Software" refers to the set of files released by the Copyright
43 | Holder(s) under this license and clearly marked as such. This may
44 | include source files, build scripts and documentation.
45 |
46 | "Reserved Font Name" refers to any names specified as such after the
47 | copyright statement(s).
48 |
49 | "Original Version" refers to the collection of Font Software components as
50 | distributed by the Copyright Holder(s).
51 |
52 | "Modified Version" refers to any derivative made by adding to, deleting,
53 | or substituting -- in part or in whole -- any of the components of the
54 | Original Version, by changing formats or by porting the Font Software to a
55 | new environment.
56 |
57 | "Author" refers to any designer, engineer, programmer, technical
58 | writer or other person who contributed to the Font Software.
59 |
60 | PERMISSION & CONDITIONS
61 | Permission is hereby granted, free of charge, to any person obtaining
62 | a copy of the Font Software, to use, study, copy, merge, embed, modify,
63 | redistribute, and sell modified and unmodified copies of the Font
64 | Software, subject to the following conditions:
65 |
66 | 1) Neither the Font Software nor any of its individual components,
67 | in Original or Modified Versions, may be sold by itself.
68 |
69 | 2) Original or Modified Versions of the Font Software may be bundled,
70 | redistributed and/or sold with any software, provided that each copy
71 | contains the above copyright notice and this license. These can be
72 | included either as stand-alone text files, human-readable headers or
73 | in the appropriate machine-readable metadata fields within text or
74 | binary files as long as those fields can be easily viewed by the user.
75 |
76 | 3) No Modified Version of the Font Software may use the Reserved Font
77 | Name(s) unless explicit written permission is granted by the corresponding
78 | Copyright Holder. This restriction only applies to the primary font name as
79 | presented to the users.
80 |
81 | 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
82 | Software shall not be used to promote, endorse or advertise any
83 | Modified Version, except to acknowledge the contribution(s) of the
84 | Copyright Holder(s) and the Author(s) or with their explicit written
85 | permission.
86 |
87 | 5) The Font Software, modified or unmodified, in part or in whole,
88 | must be distributed entirely under this license, and must not be
89 | distributed under any other license. The requirement for fonts to
90 | remain under this license does not apply to any document created
91 | using the Font Software.
92 |
93 | TERMINATION
94 | This license becomes null and void if any of the above conditions are
95 | not met.
96 |
97 | DISCLAIMER
98 | THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
99 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
100 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
101 | OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
102 | COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
103 | INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
104 | DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
105 | FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
106 | OTHER DEALINGS IN THE FONT SOFTWARE.
107 |
--------------------------------------------------------------------------------
/app/src/main/assets/colors/white-on-black.properties:
--------------------------------------------------------------------------------
1 | background: #000000
2 | foreground: #FFFFFF
3 |
4 | color1:#FFFFFF
5 | color2:#FFFFFF
6 | color3:#FFFFFF
7 | color4:#FFFFFF
8 | color5:#FFFFFF
9 | color6:#FFFFFF
10 | color7:#FFFFFF
11 | color8:#FFFFFF
12 | color9:#FFFFFF
13 | color10:#FFFFFF
14 | color11:#FFFFFF
15 | color12:#FFFFFF
16 | color13:#FFFFFF
17 | color14:#FFFFFF
18 | color15:#FFFFFF
19 | color16:#FFFFFF
20 | color17:#FFFFFF
21 | color18:#FFFFFF
22 | color19:#FFFFFF
23 | color20:#FFFFFF
24 | color21:#FFFFFF
25 | color22:#FFFFFF
26 | color23:#FFFFFF
27 | color24:#FFFFFF
28 | color25:#FFFFFF
29 | color26:#FFFFFF
30 | color27:#FFFFFF
31 | color28:#FFFFFF
32 | color29:#FFFFFF
33 | color30:#FFFFFF
34 | color31:#FFFFFF
35 | color32:#FFFFFF
36 | color33:#FFFFFF
37 | color34:#FFFFFF
38 | color35:#FFFFFF
39 | color36:#FFFFFF
40 | color37:#FFFFFF
41 | color38:#FFFFFF
42 | color39:#FFFFFF
43 | color40:#FFFFFF
44 | color41:#FFFFFF
45 | color42:#FFFFFF
46 | color43:#FFFFFF
47 | color44:#FFFFFF
48 | color45:#FFFFFF
49 | color46:#FFFFFF
50 | color47:#FFFFFF
51 | color48:#FFFFFF
52 | color49:#FFFFFF
53 | color50:#FFFFFF
54 | color51:#FFFFFF
55 | color52:#FFFFFF
56 | color53:#FFFFFF
57 | color54:#FFFFFF
58 | color55:#FFFFFF
59 | color56:#FFFFFF
60 | color57:#FFFFFF
61 | color58:#FFFFFF
62 | color59:#FFFFFF
63 | color60:#FFFFFF
64 | color61:#FFFFFF
65 | color62:#FFFFFF
66 | color63:#FFFFFF
67 | color64:#FFFFFF
68 | color65:#FFFFFF
69 | color66:#FFFFFF
70 | color67:#FFFFFF
71 | color68:#FFFFFF
72 | color69:#FFFFFF
73 | color70:#FFFFFF
74 | color71:#FFFFFF
75 | color72:#FFFFFF
76 | color73:#FFFFFF
77 | color74:#FFFFFF
78 | color75:#FFFFFF
79 | color76:#FFFFFF
80 | color77:#FFFFFF
81 | color78:#FFFFFF
82 | color79:#FFFFFF
83 | color80:#FFFFFF
84 | color81:#FFFFFF
85 | color82:#FFFFFF
86 | color83:#FFFFFF
87 | color84:#FFFFFF
88 | color85:#FFFFFF
89 | color86:#FFFFFF
90 | color87:#FFFFFF
91 | color88:#FFFFFF
92 | color89:#FFFFFF
93 | color90:#FFFFFF
94 | color91:#FFFFFF
95 | color92:#FFFFFF
96 | color93:#FFFFFF
97 | color94:#FFFFFF
98 | color95:#FFFFFF
99 | color96:#FFFFFF
100 | color97:#FFFFFF
101 | color98:#FFFFFF
102 | color99:#FFFFFF
103 | color100:#FFFFFF
104 | color101:#FFFFFF
105 | color102:#FFFFFF
106 | color103:#FFFFFF
107 | color104:#FFFFFF
108 | color105:#FFFFFF
109 | color106:#FFFFFF
110 | color107:#FFFFFF
111 | color108:#FFFFFF
112 | color109:#FFFFFF
113 | color110:#FFFFFF
114 | color111:#FFFFFF
115 | color112:#FFFFFF
116 | color113:#FFFFFF
117 | color114:#FFFFFF
118 | color115:#FFFFFF
119 | color116:#FFFFFF
120 | color117:#FFFFFF
121 | color118:#FFFFFF
122 | color119:#FFFFFF
123 | color120:#FFFFFF
124 | color121:#FFFFFF
125 | color122:#FFFFFF
126 | color123:#FFFFFF
127 | color124:#FFFFFF
128 | color125:#FFFFFF
129 | color126:#FFFFFF
130 | color127:#FFFFFF
131 | color128:#FFFFFF
132 | color129:#FFFFFF
133 | color130:#FFFFFF
134 | color131:#FFFFFF
135 | color132:#FFFFFF
136 | color133:#FFFFFF
137 | color134:#FFFFFF
138 | color135:#FFFFFF
139 | color136:#FFFFFF
140 | color137:#FFFFFF
141 | color138:#FFFFFF
142 | color139:#FFFFFF
143 | color140:#FFFFFF
144 | color141:#FFFFFF
145 | color142:#FFFFFF
146 | color143:#FFFFFF
147 | color144:#FFFFFF
148 | color145:#FFFFFF
149 | color146:#FFFFFF
150 | color147:#FFFFFF
151 | color148:#FFFFFF
152 | color149:#FFFFFF
153 | color150:#FFFFFF
154 | color151:#FFFFFF
155 | color152:#FFFFFF
156 | color153:#FFFFFF
157 | color154:#FFFFFF
158 | color155:#FFFFFF
159 | color156:#FFFFFF
160 | color157:#FFFFFF
161 | color158:#FFFFFF
162 | color159:#FFFFFF
163 | color160:#FFFFFF
164 | color161:#FFFFFF
165 | color162:#FFFFFF
166 | color163:#FFFFFF
167 | color164:#FFFFFF
168 | color165:#FFFFFF
169 | color166:#FFFFFF
170 | color167:#FFFFFF
171 | color168:#FFFFFF
172 | color169:#FFFFFF
173 | color170:#FFFFFF
174 | color171:#FFFFFF
175 | color172:#FFFFFF
176 | color173:#FFFFFF
177 | color174:#FFFFFF
178 | color175:#FFFFFF
179 | color176:#FFFFFF
180 | color177:#FFFFFF
181 | color178:#FFFFFF
182 | color179:#FFFFFF
183 | color180:#FFFFFF
184 | color181:#FFFFFF
185 | color182:#FFFFFF
186 | color183:#FFFFFF
187 | color184:#FFFFFF
188 | color185:#FFFFFF
189 | color186:#FFFFFF
190 | color187:#FFFFFF
191 | color188:#FFFFFF
192 | color189:#FFFFFF
193 | color190:#FFFFFF
194 | color191:#FFFFFF
195 | color192:#FFFFFF
196 | color193:#FFFFFF
197 | color194:#FFFFFF
198 | color195:#FFFFFF
199 | color196:#FFFFFF
200 | color197:#FFFFFF
201 | color198:#FFFFFF
202 | color199:#FFFFFF
203 | color200:#FFFFFF
204 | color201:#FFFFFF
205 | color202:#FFFFFF
206 | color203:#FFFFFF
207 | color204:#FFFFFF
208 | color205:#FFFFFF
209 | color206:#FFFFFF
210 | color207:#FFFFFF
211 | color208:#FFFFFF
212 | color209:#FFFFFF
213 | color210:#FFFFFF
214 | color211:#FFFFFF
215 | color212:#FFFFFF
216 | color213:#FFFFFF
217 | color214:#FFFFFF
218 | color215:#FFFFFF
219 | color216:#FFFFFF
220 | color217:#FFFFFF
221 | color218:#FFFFFF
222 | color219:#FFFFFF
223 | color220:#FFFFFF
224 | color221:#FFFFFF
225 | color222:#FFFFFF
226 | color223:#FFFFFF
227 | color224:#FFFFFF
228 | color225:#FFFFFF
229 | color226:#FFFFFF
230 | color227:#FFFFFF
231 | color228:#FFFFFF
232 | color229:#FFFFFF
233 | color230:#FFFFFF
234 | color231:#FFFFFF
235 | color232:#FFFFFF
236 | color233:#FFFFFF
237 | color234:#FFFFFF
238 | color235:#FFFFFF
239 | color236:#FFFFFF
240 | color237:#FFFFFF
241 | color238:#FFFFFF
242 | color239:#FFFFFF
243 | color240:#FFFFFF
244 | color241:#FFFFFF
245 | color242:#FFFFFF
246 | color243:#FFFFFF
247 | color244:#FFFFFF
248 | color245:#FFFFFF
249 | color246:#FFFFFF
250 | color247:#FFFFFF
251 | color248:#FFFFFF
252 | color249:#FFFFFF
253 | color250:#FFFFFF
254 | color251:#FFFFFF
255 | color252:#FFFFFF
256 | color253:#FFFFFF
257 | color254:#FFFFFF
258 | color255:#FFFFFF
259 |
--------------------------------------------------------------------------------
/app/src/main/assets/colors/black-on-white.properties:
--------------------------------------------------------------------------------
1 | background: #FFFFFF
2 | foreground: #000000
3 |
4 | color0:#000000
5 | color1:#000000
6 | color2:#000000
7 | color3:#000000
8 | color4:#000000
9 | color5:#000000
10 | color6:#000000
11 | color7:#000000
12 | color8:#000000
13 | color9:#000000
14 | color10:#000000
15 | color11:#000000
16 | color12:#000000
17 | color13:#000000
18 | color14:#000000
19 | color15:#000000
20 | color16:#000000
21 | color17:#000000
22 | color18:#000000
23 | color19:#000000
24 | color20:#000000
25 | color21:#000000
26 | color22:#000000
27 | color23:#000000
28 | color24:#000000
29 | color25:#000000
30 | color26:#000000
31 | color27:#000000
32 | color28:#000000
33 | color29:#000000
34 | color30:#000000
35 | color31:#000000
36 | color32:#000000
37 | color33:#000000
38 | color34:#000000
39 | color35:#000000
40 | color36:#000000
41 | color37:#000000
42 | color38:#000000
43 | color39:#000000
44 | color40:#000000
45 | color41:#000000
46 | color42:#000000
47 | color43:#000000
48 | color44:#000000
49 | color45:#000000
50 | color46:#000000
51 | color47:#000000
52 | color48:#000000
53 | color49:#000000
54 | color50:#000000
55 | color51:#000000
56 | color52:#000000
57 | color53:#000000
58 | color54:#000000
59 | color55:#000000
60 | color56:#000000
61 | color57:#000000
62 | color58:#000000
63 | color59:#000000
64 | color60:#000000
65 | color61:#000000
66 | color62:#000000
67 | color63:#000000
68 | color64:#000000
69 | color65:#000000
70 | color66:#000000
71 | color67:#000000
72 | color68:#000000
73 | color69:#000000
74 | color70:#000000
75 | color71:#000000
76 | color72:#000000
77 | color73:#000000
78 | color74:#000000
79 | color75:#000000
80 | color76:#000000
81 | color77:#000000
82 | color78:#000000
83 | color79:#000000
84 | color80:#000000
85 | color81:#000000
86 | color82:#000000
87 | color83:#000000
88 | color84:#000000
89 | color85:#000000
90 | color86:#000000
91 | color87:#000000
92 | color88:#000000
93 | color89:#000000
94 | color90:#000000
95 | color91:#000000
96 | color92:#000000
97 | color93:#000000
98 | color94:#000000
99 | color95:#000000
100 | color96:#000000
101 | color97:#000000
102 | color98:#000000
103 | color99:#000000
104 | color100:#000000
105 | color101:#000000
106 | color102:#000000
107 | color103:#000000
108 | color104:#000000
109 | color105:#000000
110 | color106:#000000
111 | color107:#000000
112 | color108:#000000
113 | color109:#000000
114 | color110:#000000
115 | color111:#000000
116 | color112:#000000
117 | color113:#000000
118 | color114:#000000
119 | color115:#000000
120 | color116:#000000
121 | color117:#000000
122 | color118:#000000
123 | color119:#000000
124 | color120:#000000
125 | color121:#000000
126 | color122:#000000
127 | color123:#000000
128 | color124:#000000
129 | color125:#000000
130 | color126:#000000
131 | color127:#000000
132 | color128:#000000
133 | color129:#000000
134 | color130:#000000
135 | color131:#000000
136 | color132:#000000
137 | color133:#000000
138 | color134:#000000
139 | color135:#000000
140 | color136:#000000
141 | color137:#000000
142 | color138:#000000
143 | color139:#000000
144 | color140:#000000
145 | color141:#000000
146 | color142:#000000
147 | color143:#000000
148 | color144:#000000
149 | color145:#000000
150 | color146:#000000
151 | color147:#000000
152 | color148:#000000
153 | color149:#000000
154 | color150:#000000
155 | color151:#000000
156 | color152:#000000
157 | color153:#000000
158 | color154:#000000
159 | color155:#000000
160 | color156:#000000
161 | color157:#000000
162 | color158:#000000
163 | color159:#000000
164 | color160:#000000
165 | color161:#000000
166 | color162:#000000
167 | color163:#000000
168 | color164:#000000
169 | color165:#000000
170 | color166:#000000
171 | color167:#000000
172 | color168:#000000
173 | color169:#000000
174 | color170:#000000
175 | color171:#000000
176 | color172:#000000
177 | color173:#000000
178 | color174:#000000
179 | color175:#000000
180 | color176:#000000
181 | color177:#000000
182 | color178:#000000
183 | color179:#000000
184 | color180:#000000
185 | color181:#000000
186 | color182:#000000
187 | color183:#000000
188 | color184:#000000
189 | color185:#000000
190 | color186:#000000
191 | color187:#000000
192 | color188:#000000
193 | color189:#000000
194 | color190:#000000
195 | color191:#000000
196 | color192:#000000
197 | color193:#000000
198 | color194:#000000
199 | color195:#000000
200 | color196:#000000
201 | color197:#000000
202 | color198:#000000
203 | color199:#000000
204 | color200:#000000
205 | color201:#000000
206 | color202:#000000
207 | color203:#000000
208 | color204:#000000
209 | color205:#000000
210 | color206:#000000
211 | color207:#000000
212 | color208:#000000
213 | color209:#000000
214 | color210:#000000
215 | color211:#000000
216 | color212:#000000
217 | color213:#000000
218 | color214:#000000
219 | color215:#000000
220 | color216:#000000
221 | color217:#000000
222 | color218:#000000
223 | color219:#000000
224 | color220:#000000
225 | color221:#000000
226 | color222:#000000
227 | color223:#000000
228 | color224:#000000
229 | color225:#000000
230 | color226:#000000
231 | color227:#000000
232 | color228:#000000
233 | color229:#000000
234 | color230:#000000
235 | color231:#000000
236 | color232:#000000
237 | color233:#000000
238 | color234:#000000
239 | color235:#000000
240 | color236:#000000
241 | color237:#000000
242 | color238:#000000
243 | color239:#000000
244 | color240:#000000
245 | color241:#000000
246 | color242:#000000
247 | color243:#000000
248 | color244:#000000
249 | color245:#000000
250 | color246:#000000
251 | color247:#000000
252 | color248:#000000
253 | color249:#000000
254 | color250:#000000
255 | color251:#000000
256 | color252:#000000
257 | color253:#000000
258 | color254:#000000
259 | color255:#000000
260 |
--------------------------------------------------------------------------------
/app/src/main/assets/fonts/Hack.txt:
--------------------------------------------------------------------------------
1 | A typeface designed for source code by Chris Simpkins.
2 |
3 | http://sourcefoundry.org/hack/
4 |
5 | ## License
6 |
7 | Hack Copyright 2015, Christopher Simpkins with Reserved Font Name "Hack".
8 |
9 | Bitstream Vera Sans Mono Copyright 2003 Bitstream Inc. and licensed under the Bitstream Vera License with Reserved Font Names "Bitstream" and "Vera"
10 |
11 | DejaVu modifications of the original Bitstream Vera Sans Mono typeface have been committed to the public domain.
12 |
13 |
14 |
15 | This Font Software is licensed under the Hack Open Font License v2.0 and the Bitstream Vera License.
16 |
17 | These licenses are copied below.
18 |
19 |
20 | ### Hack Open Font License v2.0
21 |
22 | (Version 1.0 - 06 September 2015)
23 |
24 | (Version 2.0 - 27 September 2015)
25 |
26 | Copyright 2015 by Christopher Simpkins. All Rights Reserved.
27 |
28 | DEFINITIONS
29 |
30 | "Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.
31 |
32 | PERMISSION AND CONDITIONS
33 |
34 | Permission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated source code, documentation, and binary files (the "Font Software"), to reproduce and distribute the modifications to the Bitstream Vera Font Software, including without limitation the rights to use, study, copy, merge, embed, modify, redistribute, and/or sell modified or unmodified copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions:
35 |
36 | (1) The above copyright notice and this permission notice shall be included in all modified and unmodified copies of the Font Software typefaces. These notices can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.
37 |
38 | (2) The Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing the word "Hack".
39 |
40 | (3) Neither the Font Software nor any of its individual components, in original or modified versions, may be sold by itself.
41 |
42 | TERMINATION
43 |
44 | This license becomes null and void if any of the above conditions are not met.
45 |
46 | THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
47 |
48 | Except as contained in this notice, the names of Christopher Simpkins and the Author(s) of the Font Software shall not be used to promote, endorse or advertise any modified version, except to acknowledge the contribution(s) of Christopher Simpkins and the Author(s) or with their explicit written permission. For further information, contact: chris at sourcefoundry dot org.
49 |
50 |
51 |
52 | ### BITSTREAM VERA LICENSE
53 |
54 | Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera is a trademark of Bitstream, Inc.
55 |
56 | Permission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions:
57 |
58 | The above copyright and trademark notices and this permission notice shall be included in all copies of one or more of the Font Software typefaces.
59 |
60 | The Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing either the words "Bitstream" or the word "Vera".
61 |
62 | This License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "Bitstream Vera" names.
63 |
64 | The Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself.
65 |
66 | THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
67 |
68 | Except as contained in this notice, the names of Gnome, the Gnome Foundation, and Bitstream Inc., shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Font Software without prior written authorization from the Gnome Foundation or Bitstream Inc., respectively. For further information, contact: fonts at gnome dot org.
69 |
--------------------------------------------------------------------------------
/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | #
4 | # Copyright 2015 the original author or authors.
5 | #
6 | # Licensed under the Apache License, Version 2.0 (the "License");
7 | # you may not use this file except in compliance with the License.
8 | # You may obtain a copy of the License at
9 | #
10 | # https://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 | #
18 |
19 | ##############################################################################
20 | ##
21 | ## Gradle start up script for UN*X
22 | ##
23 | ##############################################################################
24 |
25 | # Attempt to set APP_HOME
26 | # Resolve links: $0 may be a link
27 | PRG="$0"
28 | # Need this for relative symlinks.
29 | while [ -h "$PRG" ] ; do
30 | ls=`ls -ld "$PRG"`
31 | link=`expr "$ls" : '.*-> \(.*\)$'`
32 | if expr "$link" : '/.*' > /dev/null; then
33 | PRG="$link"
34 | else
35 | PRG=`dirname "$PRG"`"/$link"
36 | fi
37 | done
38 | SAVED="`pwd`"
39 | cd "`dirname \"$PRG\"`/" >/dev/null
40 | APP_HOME="`pwd -P`"
41 | cd "$SAVED" >/dev/null
42 |
43 | APP_NAME="Gradle"
44 | APP_BASE_NAME=`basename "$0"`
45 |
46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
48 |
49 | # Use the maximum available, or set MAX_FD != -1 to use that value.
50 | MAX_FD="maximum"
51 |
52 | warn () {
53 | echo "$*"
54 | }
55 |
56 | die () {
57 | echo
58 | echo "$*"
59 | echo
60 | exit 1
61 | }
62 |
63 | # OS specific support (must be 'true' or 'false').
64 | cygwin=false
65 | msys=false
66 | darwin=false
67 | nonstop=false
68 | case "`uname`" in
69 | CYGWIN* )
70 | cygwin=true
71 | ;;
72 | Darwin* )
73 | darwin=true
74 | ;;
75 | MINGW* )
76 | msys=true
77 | ;;
78 | NONSTOP* )
79 | nonstop=true
80 | ;;
81 | esac
82 |
83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
84 |
85 |
86 | # Determine the Java command to use to start the JVM.
87 | if [ -n "$JAVA_HOME" ] ; then
88 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
89 | # IBM's JDK on AIX uses strange locations for the executables
90 | JAVACMD="$JAVA_HOME/jre/sh/java"
91 | else
92 | JAVACMD="$JAVA_HOME/bin/java"
93 | fi
94 | if [ ! -x "$JAVACMD" ] ; then
95 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
96 |
97 | Please set the JAVA_HOME variable in your environment to match the
98 | location of your Java installation."
99 | fi
100 | else
101 | JAVACMD="java"
102 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
103 |
104 | Please set the JAVA_HOME variable in your environment to match the
105 | location of your Java installation."
106 | fi
107 |
108 | # Increase the maximum file descriptors if we can.
109 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
110 | MAX_FD_LIMIT=`ulimit -H -n`
111 | if [ $? -eq 0 ] ; then
112 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
113 | MAX_FD="$MAX_FD_LIMIT"
114 | fi
115 | ulimit -n $MAX_FD
116 | if [ $? -ne 0 ] ; then
117 | warn "Could not set maximum file descriptor limit: $MAX_FD"
118 | fi
119 | else
120 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
121 | fi
122 | fi
123 |
124 | # For Darwin, add options to specify how the application appears in the dock
125 | if $darwin; then
126 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
127 | fi
128 |
129 | # For Cygwin or MSYS, switch paths to Windows format before running java
130 | if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
131 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
132 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
133 |
134 | JAVACMD=`cygpath --unix "$JAVACMD"`
135 |
136 | # We build the pattern for arguments to be converted via cygpath
137 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
138 | SEP=""
139 | for dir in $ROOTDIRSRAW ; do
140 | ROOTDIRS="$ROOTDIRS$SEP$dir"
141 | SEP="|"
142 | done
143 | OURCYGPATTERN="(^($ROOTDIRS))"
144 | # Add a user-defined pattern to the cygpath arguments
145 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
146 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
147 | fi
148 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
149 | i=0
150 | for arg in "$@" ; do
151 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
152 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
153 |
154 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
155 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
156 | else
157 | eval `echo args$i`="\"$arg\""
158 | fi
159 | i=`expr $i + 1`
160 | done
161 | case $i in
162 | 0) set -- ;;
163 | 1) set -- "$args0" ;;
164 | 2) set -- "$args0" "$args1" ;;
165 | 3) set -- "$args0" "$args1" "$args2" ;;
166 | 4) set -- "$args0" "$args1" "$args2" "$args3" ;;
167 | 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
168 | 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
169 | 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
170 | 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
171 | 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
172 | esac
173 | fi
174 |
175 | # Escape application args
176 | save () {
177 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
178 | echo " "
179 | }
180 | APP_ARGS=`save "$@"`
181 |
182 | # Collect all arguments for the java command, following the shell quoting and substitution rules
183 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
184 |
185 | exec "$JAVACMD" "$@"
186 |
--------------------------------------------------------------------------------
/app/src/main/assets/fonts/Iosevka.txt:
--------------------------------------------------------------------------------
1 | Slender typeface for code, from code by Belleve Invis.
2 |
3 | https://be5invis.github.io/Iosevka/
4 |
5 | The font is licensed under SIL OFL Version 1.1.
6 |
7 | The support code is licensed under Berkeley Software Distribution license.
8 |
9 | ---
10 | ---
11 |
12 | Copyright (c) 2015-2017 Belleve Invis (belleve@typeof.net).
13 |
14 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
15 | * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
16 | * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
17 | * Neither the name of Belleve Invis nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
18 |
19 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BELLEVE INVIS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
20 |
21 | -----------------------
22 |
23 | ---
24 |
25 | Copyright 2015-2017, Belleve Invis (belleve@typeof.net).
26 |
27 | This Font Software is licensed under the SIL Open Font License, Version 1.1.
28 |
29 | This license is copied below, and is also available with a FAQ at:
30 | http://scripts.sil.org/OFL
31 |
32 | --------------------------
33 |
34 |
35 | SIL Open Font License v1.1
36 | ====================================================
37 |
38 |
39 | Preamble
40 | ----------
41 |
42 | The goals of the Open Font License (OFL) are to stimulate worldwide
43 | development of collaborative font projects, to support the font creation
44 | efforts of academic and linguistic communities, and to provide a free and
45 | open framework in which fonts may be shared and improved in partnership
46 | with others.
47 |
48 | The OFL allows the licensed fonts to be used, studied, modified and
49 | redistributed freely as long as they are not sold by themselves. The
50 | fonts, including any derivative works, can be bundled, embedded,
51 | redistributed and/or sold with any software provided that any reserved
52 | names are not used by derivative works. The fonts and derivatives,
53 | however, cannot be released under any other type of license. The
54 | requirement for fonts to remain under this license does not apply
55 | to any document created using the fonts or their derivatives.
56 |
57 |
58 | Definitions
59 | -------------
60 |
61 | `"Font Software"` refers to the set of files released by the Copyright
62 | Holder(s) under this license and clearly marked as such. This may
63 | include source files, build scripts and documentation.
64 |
65 | `"Reserved Font Name"` refers to any names specified as such after the
66 | copyright statement(s).
67 |
68 | `"Original Version"` refers to the collection of Font Software components as
69 | distributed by the Copyright Holder(s).
70 |
71 | `"Modified Version"` refers to any derivative made by adding to, deleting,
72 | or substituting -- in part or in whole -- any of the components of the
73 | Original Version, by changing formats or by porting the Font Software to a
74 | new environment.
75 |
76 | `"Author"` refers to any designer, engineer, programmer, technical
77 | writer or other person who contributed to the Font Software.
78 |
79 |
80 | Permission & Conditions
81 | ------------------------
82 |
83 | Permission is hereby granted, free of charge, to any person obtaining
84 | a copy of the Font Software, to use, study, copy, merge, embed, modify,
85 | redistribute, and sell modified and unmodified copies of the Font
86 | Software, subject to the following conditions:
87 |
88 | 1. Neither the Font Software nor any of its individual components,
89 | in Original or Modified Versions, may be sold by itself.
90 |
91 | 2. Original or Modified Versions of the Font Software may be bundled,
92 | redistributed and/or sold with any software, provided that each copy
93 | contains the above copyright notice and this license. These can be
94 | included either as stand-alone text files, human-readable headers or
95 | in the appropriate machine-readable metadata fields within text or
96 | binary files as long as those fields can be easily viewed by the user.
97 |
98 | 3. No Modified Version of the Font Software may use the Reserved Font
99 | Name(s) unless explicit written permission is granted by the corresponding
100 | Copyright Holder. This restriction only applies to the primary font name as
101 | presented to the users.
102 |
103 | 4. The name(s) of the Copyright Holder(s) or the Author(s) of the Font
104 | Software shall not be used to promote, endorse or advertise any
105 | Modified Version, except to acknowledge the contribution(s) of the
106 | Copyright Holder(s) and the Author(s) or with their explicit written
107 | permission.
108 |
109 | 5. The Font Software, modified or unmodified, in part or in whole,
110 | must be distributed entirely under this license, and must not be
111 | distributed under any other license. The requirement for fonts to
112 | remain under this license does not apply to any document created
113 | using the Font Software.
114 |
115 |
116 |
117 | Termination
118 | -----------
119 |
120 | This license becomes null and void if any of the above conditions are
121 | not met.
122 |
123 |
124 | DISCLAIMER
125 |
126 | THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
127 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
128 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
129 | OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
130 | COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
131 | INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
132 | DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
133 | FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
134 | OTHER DEALINGS IN THE FONT SOFTWARE.
135 |
--------------------------------------------------------------------------------
/app/src/main/assets/colors/nancy.properties:
--------------------------------------------------------------------------------
1 | # http://www.xcolors.net/dl/nancy
2 |
3 | foreground: #fff
4 | background: #010101
5 | cursor: #e5e5e5
6 |
7 | color0: #1b1d1e
8 | color1: #f92672
9 | color2: #82b414
10 | color3: #fd971f
11 | color4: #4e82aa
12 | color5: #8c54fe
13 | color6: #465457
14 | color7: #ccccc6
15 | color8: #505354
16 | color9: #ff5995
17 | color10: #b6e354
18 | color11: #feed6c
19 | color12: #0c73c2
20 | color13: #9e6ffe
21 | color14: #899ca1
22 | color15: #f8f8f2
23 |
24 | color16: #000000
25 | color17: #00005f
26 | color18: #000087
27 | color19: #0000af
28 | color20: #0000d7
29 | color21: #0000ff
30 | color22: #005f00
31 | color23: #005f5f
32 | color24: #005f87
33 | color25: #005faf
34 | color26: #005fd7
35 | color27: #005fff
36 | color28: #008700
37 | color29: #00875f
38 | color30: #008787
39 | color31: #0087af
40 | color32: #0087d7
41 | color33: #0087ff
42 | color34: #00af00
43 | color35: #00af5f
44 | color36: #00af87
45 | color37: #00afaf
46 | color38: #00afd7
47 | color39: #00afff
48 | color40: #00d700
49 | color41: #00d75f
50 | color42: #00d787
51 | color43: #00d7af
52 | color44: #00d7d7
53 | color45: #00d7ff
54 | color46: #00ff00
55 | color47: #00ff5f
56 | color48: #00ff87
57 | color49: #00ffaf
58 | color50: #00ffd7
59 | color51: #00ffff
60 | color52: #131324
61 | color53: #5f005f
62 | color54: #5f0087
63 | color55: #5f00af
64 | color56: #5f00d7
65 | color57: #5f00ff
66 | color58: #5f5f00
67 | color59: #5f5f5f
68 | color60: #5f5f87
69 | color61: #5f5faf
70 | color62: #5f5fd7
71 | color63: #5f5fff
72 | color64: #5f8700
73 | color65: #5f875f
74 | color66: #5f8787
75 | color67: #5f87af
76 | color68: #5f87d7
77 | color69: #5f87ff
78 | color70: #5faf00
79 | color71: #5faf5f
80 | color72: #5faf87
81 | color73: #5fafaf
82 | color74: #5fafd7
83 | color75: #5fafff
84 | color76: #5fd700
85 | color77: #5fd75f
86 | color78: #5fd787
87 | color79: #5fd7af
88 | color80: #5fd7d7
89 | color81: #5fd7ff
90 | color82: #5fff00
91 | color83: #5fff5f
92 | color84: #5fff87
93 | color85: #a03040
94 | color86: #565941
95 | color87: #594459
96 | color88: #009bff
97 | color89: #87005f
98 | color90: #870087
99 | color91: #8700af
100 | color92: #8700d7
101 | color93: #8700ff
102 | color94: #875f00
103 | color95: #875f5f
104 | color96: #875f87
105 | color97: #875faf
106 | color98: #875fd7
107 | color99: #875fff
108 | color100: #878700
109 | color101: #87875f
110 | color102: #878787
111 | color103: #8787af
112 | color104: #8787d7
113 | color105: #8787ff
114 | color106: #87af00
115 | color107: #87af5f
116 | color108: #87af87
117 | color109: #87afaf
118 | color110: #87afd7
119 | color111: #87afff
120 | color112: #87d700
121 | color113: #87d75f
122 | color114: #87d787
123 | color115: #87d7af
124 | color116: #87d7d7
125 | color117: #87d7ff
126 | color118: #87ff00
127 | color119: #87ff5f
128 | color120: #87ff87
129 | color121: #87ffaf
130 | color122: #87ffd7
131 | color123: #87ffff
132 | color124: #af0000
133 | color125: #af005f
134 | color126: #af0087
135 | color127: #af00af
136 | color128: #af00d7
137 | color129: #af00ff
138 | color130: #af5f00
139 | color131: #af5f5f
140 | color132: #af5f87
141 | color133: #af5faf
142 | color134: #af5fd7
143 | color135: #af5fff
144 | color136: #af8700
145 | color137: #af875f
146 | color138: #af8787
147 | color139: #af87af
148 | color140: #af87d7
149 | color141: #af87ff
150 | color142: #afaf00
151 | color143: #afaf5f
152 | color144: #afaf87
153 | color145: #afafaf
154 | color146: #afafd7
155 | color147: #afafff
156 | color148: #afd700
157 | color149: #afd75f
158 | color150: #afd787
159 | color151: #afd7af
160 | color152: #afd7d7
161 | color153: #afd7ff
162 | color154: #afff00
163 | color155: #afff5f
164 | color156: #afff87
165 | color157: #afffaf
166 | color158: #afffd7
167 | color159: #afffff
168 | color160: #d70000
169 | color161: #d7005f
170 | color162: #d70087
171 | color163: #d700af
172 | color164: #d700d7
173 | color165: #d700ff
174 | color166: #d75f00
175 | color167: #d75f5f
176 | color168: #d75f87
177 | color169: #d75faf
178 | color170: #d75fd7
179 | color171: #d75fff
180 | color172: #d78700
181 | color173: #d7875f
182 | color174: #d78787
183 | color175: #d787af
184 | color176: #d787d7
185 | color177: #d787ff
186 | color178: #d7af00
187 | color179: #d7af5f
188 | color180: #d7af87
189 | color181: #d7afaf
190 | color182: #d7afd7
191 | color183: #d7afff
192 | color184: #d7d700
193 | color185: #ffff00
194 | color186: #d7d787
195 | color187: #d7d7af
196 | color188: #d7d7d7
197 | color189: #d7d7ff
198 | color190: #d7ff00
199 | color191: #d7ff5f
200 | color192: #d7ff87
201 | color193: #d7ffaf
202 | color194: #d7ffd7
203 | color195: #d7ffff
204 | color196: #ff0000
205 | color197: #ff005f
206 | color198: #ff0087
207 | color199: #ff00af
208 | color200: #ff00d7
209 | color201: #ff00ff
210 | color202: #ff5f00
211 | color203: #ff5f5f
212 | color204: #ff5f87
213 | color205: #ff5faf
214 | color206: #ff5fd7
215 | color207: #ff5fff
216 | color208: #ff8700
217 | color209: #ff875f
218 | color210: #ff8787
219 | color211: #ff87af
220 | color212: #ff87d7
221 | color213: #ff87ff
222 | color214: #ffaf00
223 | color215: #ffaf5f
224 | color216: #ffaf87
225 | color217: #ffafaf
226 | color218: #ffafd7
227 | color219: #ffafff
228 | color220: #ffd700
229 | color221: #ffd75f
230 | color222: #ffd787
231 | color223: #ffd7af
232 | color224: #ffd7d7
233 | color225: #ffd7ff
234 | color226: #ffff00
235 | color227: #ffff5f
236 | color228: #ffff87
237 | color229: #ffffaf
238 | color230: #ffffd7
239 | color231: #060000
240 | color232: #080808
241 | color233: #121212
242 | color234: #1c1c1c
243 | color235: #262626
244 | color236: #303030
245 | color237: #3a3a3a
246 | color238: #444444
247 | color239: #4e4e4e
248 | color240: #585858
249 | color241: #626262
250 | color242: #6c6c6c
251 | color243: #767676
252 | color244: #808080
253 | color245: #8a8a8a
254 | color246: #949494
255 | color247: #9e9e9e
256 | color248: #a8a8a8
257 | color249: #b2b2b2
258 | color250: #bcbcbc
259 | color251: #c6c6c6
260 | color252: #d0d0d0
261 | color253: #dadada
262 | color254: #e4e4e4
263 | color255: #eeeeee
264 |
--------------------------------------------------------------------------------
/app/src/main/java/com/termux/styling/TermuxStyleActivity.kt:
--------------------------------------------------------------------------------
1 | package com.termux.styling
2 |
3 | import android.app.Activity
4 | import android.app.AlertDialog
5 | import android.content.Context
6 | import android.content.Intent
7 | import android.os.Bundle
8 | import android.text.SpannableString
9 | import android.text.method.LinkMovementMethod
10 | import android.text.util.Linkify
11 | import android.util.AtomicFile
12 | import android.util.Log
13 | import android.view.View
14 | import android.view.WindowManager
15 | import android.widget.ArrayAdapter
16 | import android.widget.Button
17 | import android.widget.TextView
18 | import android.widget.Toast
19 | import java.io.File
20 | import java.io.FileOutputStream
21 | import java.io.IOException
22 | import java.nio.charset.StandardCharsets
23 | import java.util.*
24 |
25 | const val DEFAULT_FILENAME = "Default"
26 |
27 | fun capitalize(str: String): String {
28 | var lastWhitespace = true
29 | val chars = str.toCharArray()
30 | for (i in chars.indices) {
31 | if (Character.isLetter(chars[i])) {
32 | if (lastWhitespace) chars[i] = Character.toUpperCase(chars[i])
33 | lastWhitespace = false
34 | } else {
35 | lastWhitespace = Character.isWhitespace(chars[i])
36 | }
37 | }
38 | return String(chars)
39 | }
40 |
41 | class TermuxStyleActivity : Activity() {
42 |
43 | internal class Selectable(val fileName: String) {
44 | val displayName: String
45 |
46 | init {
47 | var name = fileName.replace('-', ' ')
48 | val dotIndex = name.lastIndexOf('.')
49 | if (dotIndex != -1) name = name.substring(0, dotIndex)
50 |
51 | this.displayName = capitalize(name)
52 | }
53 |
54 | override fun toString(): String {
55 | return displayName
56 | }
57 | }
58 |
59 | override fun onCreate(savedInstanceState: Bundle?) {
60 | super.onCreate(savedInstanceState)
61 |
62 | // Avoid dim behind:
63 | window.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND)
64 | setContentView(R.layout.layout)
65 |
66 | val colorSpinner = findViewById