Skip to content

Commit

Permalink
allow for even large font sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Nov 29, 2024
1 parent d7a63ce commit 379de7a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,13 +259,13 @@ public class TRIFAGlobals
static List<BootstrapNodeEntryDB> bootstrap_node_list = new ArrayList<>();
public static List<BootstrapNodeEntryDB> tcprelay_node_list = new ArrayList<>();

static final int[] MESSAGE_TEXT_SIZE = {9, 11, 15, 20}; // values in "sp"
static final int[] MESSAGE_EMOJI_SIZE = {13, 18, 25, 36}; // values in "dp"
static final int[] MESSAGE_AVATAR_HEIGHT_COMPACT_LAYOUT = {17, 17, 22, 30}; // values in "dp"
static final int[] MESSAGE_AVATAR_HEIGHT_NORMAL_LAYOUT = {50, 50, 50, 50}; // values in "dp"
static final int[] MESSAGE_TEXT_SIZE = {9, 11, 15, 20, 25, 30, 45}; // values in "sp"
static final int[] MESSAGE_EMOJI_SIZE = {13, 18, 25, 36, 40, 40, 40}; // values in "dp"
static final int[] MESSAGE_AVATAR_HEIGHT_COMPACT_LAYOUT = {17, 17, 22, 30, 30, 30, 30}; // values in "dp"
static final int[] MESSAGE_AVATAR_HEIGHT_NORMAL_LAYOUT = {50, 50, 50, 50, 50, 50, 50}; // values in "dp"
static final int MESSAGE_TEXT_SIZE_FT_SMALL = 12;
static final int MESSAGE_TEXT_SIZE_FT_NORMAL = 13;
static final int[] MESSAGE_EMOJI_ONLY_EMOJI_SIZE = {13 * 2, 18 * 2, 25 * 2, 36 * 2}; // values in "dp"
static final int[] MESSAGE_EMOJI_ONLY_EMOJI_SIZE = {13 * 2, 18 * 2, 25 * 2, 36 * 2, 40 * 2, 40 * 2, 40 * 2}; // values in "dp"

static long LAST_ONLINE_TIMSTAMP_ONLINE_NOW = Long.MAX_VALUE - 1;
static long LAST_ONLINE_TIMSTAMP_ONLINE_OFFLINE = -1;
Expand Down
12 changes: 0 additions & 12 deletions android-refimpl-app/app/src/main/res/values-kn/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,6 @@
</string-array>
<string name="pref_title_global_font_size">ಅಕ್ಷರ ಗಾತ್ರ</string>
<string name="pref_description_global_font_size">Select ಅಕ್ಷರ ಗಾತ್ರ ಆಯ್ಕೆ ಮಾಡಿ</string>
<string-array name="pref_global_font_size_titles">
<item>ಅತೀ ಸಣ್ಣದು</item>
<item>ಸಣ್ಣದು</item>
<item>ಸಾಮಾನ್ಯ</item>
<item>ದೊಡ್ಡದು</item>
</string-array>
<string-array name="pref_global_font_size_values">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
</string-array>
<string name="pref_title_camera_get_preview_format">ಕ್ಯಾಮೆರಾ ಪೂರ್ವ-ವೀಕ್ಷಣೆ ಸ್ವರೂಪ</string>
<string name="pref_description_camera_get_preview_format">ಕ್ಯಾಮೆರಾ ಪೂರ್ವವೀಕ್ಷಣೆ ಸ್ವರೂಪ ಕೆಲವು ಫೋನ್‌ಗಳಲ್ಲಿ ತಪ್ಪಾದ ಸ್ವರೂಪದಲ್ಲಿದೆ ಎಂದು ತೋರುತ್ತದೆ</string>
<string-array name="pref_camera_get_preview_format_titles">
Expand Down
12 changes: 0 additions & 12 deletions android-refimpl-app/app/src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,6 @@
</string-array>
<string name="pref_title_global_font_size">字体大小</string>
<string name="pref_description_global_font_size">选择字体大小</string>
<string-array name="pref_global_font_size_titles">
<item>很小</item>
<item>小</item>
<item>默认:正常</item>
<item>大</item>
</string-array>
<string-array name="pref_global_font_size_values">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
</string-array>
<string name="pref_title_camera_get_preview_format">相机预览格式</string>
<string name="pref_description_camera_get_preview_format">相机预览格式在某些手机上似乎使用了错误的格式</string>
<string-array name="pref_camera_get_preview_format_titles">
Expand Down
6 changes: 6 additions & 0 deletions android-refimpl-app/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,18 @@
<item>small</item>
<item>default: normal</item>
<item>large</item>
<item>larger</item>
<item>very large</item>
<item>extremly large</item>
</string-array>
<string-array name="pref_global_font_size_values">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
<item>4</item>
<item>5</item>
<item>6</item>
</string-array>

<string name="pref_title_camera_get_preview_format">Camera Preview Format</string>
Expand Down

0 comments on commit 379de7a

Please sign in to comment.