Commit 687f375
committed
feat: Standardize CodeView font size and refactor CodeHighlighter
This commit introduces a consistent font size for all CodeView instances and refactors the CodeHighlighter class.
- `CodeViewUtils.java`: The text size for CodeView instances is now set to a uniform 14f. Previously, the line number text size was set to match the view's text size, which could lead to inconsistencies.
- `CodeHighlighter.java`: The private constructor has been removed. This change doesn't alter the class's functionality as it's a utility class with static methods, but it simplifies the class structure.1 parent b636935 commit 687f375
File tree
2 files changed
+2
-5
lines changed- app/src/main/java/com/d4rk/androidtutorials/java/utils
2 files changed
+2
-5
lines changedLines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 14 | | |
19 | 15 | | |
20 | 16 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
0 commit comments