Commit e44167e
committed
Give the app its own mark, and make the screen read as an Android app
The launcher icon was a hand-drawn vector — a blue square with a page outline —
unrelated to the mark the desktop builds ship. Every density is now generated
from .github/assets/logo.png by android/tools/generate_launcher_icons.py, with
a monochrome layer so Android 13 themed icons work, and the artwork sized into
the 66dp safe zone so a circular launcher does not clip the arrows. The header
shows the same mark instead of a generic PDF glyph.
The rest is a UI that was ported from the desktop window without being adapted:
- The colour scheme set seven of Material 3's ~30 roles and let the rest fall
back to the default baseline, which is lavender. surfaceVariant, error and
onSurfaceVariant are all used by the About panel, the log viewer and menus,
so those were purple inside a blue and grey app. Both schemes are complete now.
- Queue rows picked their status colour from the Light constants regardless of
theme. In dark mode a finished file was #1A7F37 on #161B22 — a dark green on
near-black. The Dark constants were sitting in Color.kt unread.
- bodySmall was Monospace. One of its ten callers wanted that; the other nine
were file names, folder names and button labels set in a typewriter face.
- Body text ran a step small throughout, sized for a monitor rather than a hand.
- Touch targets: 36dp icon buttons in the header, a 24dp box holding a ✕ to
remove a queue row, a 32dp "Mở PDF". The minimum is 48dp.
- The file picker was a "drop zone" with a ⤓ glyph. There is nothing to drag on
a phone, tapping it did nothing, and that character is not in every font.
- The footer printed the raw output location, which for a folder picked through
the storage access framework is a content:// URI that wraps over three lines.
- The window theme was the platform default, so a cold start flashed a colour
Compose then repainted.
Dynamic colour is deliberately not adopted: the blue is shared with the Windows
and macOS builds, and following the wallpaper would break that on one platform
of the three.1 parent 877cabc commit e44167e
41 files changed
Lines changed: 859 additions & 461 deletions
File tree
- android
- app/src/main
- java/com/vitranslate/pdf
- ui
- components
- theme
- res
- drawable
- mipmap-anydpi-v26
- mipmap-hdpi
- mipmap-mdpi
- mipmap-xhdpi
- mipmap-xxhdpi
- mipmap-xxxhdpi
- values-night
- values
- tools
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| |||
Lines changed: 95 additions & 86 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
53 | | - | |
54 | | - | |
55 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
56 | 61 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
74 | 69 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
90 | 92 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
103 | 105 | | |
104 | | - | |
| 106 | + | |
105 | 107 | | |
106 | 108 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | 109 | | |
130 | 110 | | |
131 | | - | |
| 111 | + | |
132 | 112 | | |
133 | 113 | | |
134 | 114 | | |
135 | | - | |
136 | | - | |
| 115 | + | |
137 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
138 | 124 | | |
139 | 125 | | |
140 | | - | |
141 | | - | |
142 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
143 | 129 | | |
144 | 130 | | |
145 | 131 | | |
146 | | - | |
147 | | - | |
| 132 | + | |
| 133 | + | |
148 | 134 | | |
149 | 135 | | |
150 | 136 | | |
151 | 137 | | |
152 | | - | |
153 | | - | |
| 138 | + | |
154 | 139 | | |
155 | | - | |
156 | | - | |
157 | | - | |
| 140 | + | |
158 | 141 | | |
159 | | - | |
| 142 | + | |
160 | 143 | | |
161 | 144 | | |
162 | 145 | | |
163 | | - | |
164 | | - | |
| 146 | + | |
| 147 | + | |
165 | 148 | | |
166 | 149 | | |
167 | 150 | | |
168 | 151 | | |
| 152 | + | |
| 153 | + | |
169 | 154 | | |
170 | 155 | | |
171 | 156 | | |
| |||
179 | 164 | | |
180 | 165 | | |
181 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
182 | 191 | | |
183 | 192 | | |
184 | 193 | | |
Lines changed: 0 additions & 81 deletions
This file was deleted.
0 commit comments