Skip to content

Commit 86e29d9

Browse files
committed
chore: font size fix
1 parent f6d21a7 commit 86e29d9

4 files changed

Lines changed: 15 additions & 15 deletions

File tree

app/components/common/ListItemAutoSize.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
export let showBottomLine: boolean = false;
1919
export let enabled: boolean = true;
2020
// export let iconFontSize: number = 24;
21-
export let fontSize: number = 20;
21+
export let fontSize: number = 21;
2222
export let fontWeight: any = 'normal';
23-
export let subtitleFontSize: number = 14;
23+
export let subtitleFontSize: number = 15;
2424
export let title: string = null;
2525
export let titleColor: string = null;
2626
export let color: string = null;
@@ -106,7 +106,7 @@
106106
textWrap={true}
107107
verticalAlignment="center"
108108
{...titleProps}>
109-
<cspan color={titleColor || color || colorOnSurface} fontSize={fontSize * $fontScale} {fontWeight} text={title} />
109+
<cspan color={titleColor || color || colorOnSurface} fontSize={fontSize * $fontScale} {fontWeight} lineHeight={fontSize * $fontScale * 1.3} text={title} />
110110
<cspan color={subtitleColor || colorOnSurfaceVariant} fontSize={subtitleFontSize * $fontScale} text={subtitle ? '\n' + subtitle : null} />
111111
</label>
112112

app/components/settings/Settings.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
import { PDF_OPTIONS } from '~/utils/localized_constant';
7979
import { createView, getNameFormatHTMLArgs, hideLoading, openLink, showAlertOptionSelect, showLoading, showSettings, showSliderPopover, showSnack } from '~/utils/ui';
8080
import { restartApp, toggleQuickSetting } from '~/utils/utils';
81-
import { colors, fonts, hasCamera, onFontScaleChanged, windowInset } from '~/variables';
81+
import { colors, fontScale, fonts, hasCamera, onFontScaleChanged, windowInset } from '~/variables';
8282
import IconButton from '../common/IconButton.svelte';
8383
import { share } from '@akylas/nativescript-app-utils/share';
8484
import { inappItems, presentInAppSponsorBottomsheet } from '@shared/utils/inapp-purchase';
@@ -1546,7 +1546,7 @@
15461546
verticalAlignment="center"
15471547
on:tap={(event) => onTap({ id: 'sponsor' }, event)}>
15481548
<label color="white" fontFamily={$fonts.mdi} fontSize={26} marginRight={10} text="mdi-heart" verticalAlignment="center" />
1549-
<label color="white" fontSize={12} text={item.title} textWrap={true} verticalAlignment="center" />
1549+
<label color="white" fontSize={12 * $fontScale} text={item.title} textWrap={true} verticalAlignment="center" />
15501550
</stacklayout>
15511551
{#if __ANDROID__}
15521552
<image
@@ -1570,8 +1570,8 @@
15701570
</gridlayout>
15711571

15721572
<stacklayout horizontalAlignment="center" marginBottom={0} marginTop={20} row={1} verticalAlignment="center">
1573-
<image borderRadius="25" height={50} horizontalAlignment="center" src="res://icon" width={50} />
1574-
<label fontSize={13} marginTop={4} text={version} on:longPress={(event) => onLongPress('version', event)} />
1573+
<image borderRadius={25} height={50} horizontalAlignment="center" src="res://icon" width={50} />
1574+
<label fontSize={13 * $fontScale} marginTop={4} text={version} on:longPress={(event) => onLongPress('version', event)} />
15751575
</stacklayout>
15761576
</gridlayout>
15771577
</Template>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"@nativescript-community/sqlite": "3.5.1",
5858
"@nativescript-community/svelte-native": "1.0.32",
5959
"@nativescript-community/systemui": "1.1.24",
60-
"@nativescript-community/text": "1.6.23",
60+
"@nativescript-community/text": "1.6.24",
6161
"@nativescript-community/ui-cameraview": "0.6.2",
6262
"@nativescript-community/ui-canvas": "4.6.46",
6363
"@nativescript-community/ui-canvaslabel": "1.2.49",

yarn.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ __metadata:
2727

2828
"@akylas/nativescript-app-tools@file:tools::locator=root-workspace-0b6124%40workspace%3A.":
2929
version: 1.0.0
30-
resolution: "@akylas/nativescript-app-tools@file:tools#tools::hash=4e6274&locator=root-workspace-0b6124%40workspace%3A."
30+
resolution: "@akylas/nativescript-app-tools@file:tools#tools::hash=7c8624&locator=root-workspace-0b6124%40workspace%3A."
3131
dependencies:
3232
"@dotenvx/dotenvx": "npm:1.51.4"
3333
"@nativescript-community/fontmin": "npm:0.9.11"
@@ -81,7 +81,7 @@ __metadata:
8181
typescript: "npm:5.9.3"
8282
typescript-eslint: "npm:8.53.0"
8383
webpack-bundle-analyzer: "npm:4.10.2"
84-
checksum: 10/00bfa60a656506d22cb0087cafe5906bbc0bde591e9201363f52ba4dd7e81514c7831bfd494f1afe92ea6f14bd69a3a2ba916cfe95eabdc188af3b5c21c024c3
84+
checksum: 10/0d1a06e2f2299c54a9b826d6b290519735d1f931bf29ec33d506e4621647c72d64edffa94b32e3e4e5ccb0806c4c75b86171aa943a6075aa8d39b2c0cecab723
8585
languageName: node
8686
linkType: hard
8787

@@ -1182,10 +1182,10 @@ __metadata:
11821182
languageName: node
11831183
linkType: hard
11841184

1185-
"@nativescript-community/text@npm:1.6.23":
1186-
version: 1.6.23
1187-
resolution: "@nativescript-community/text@npm:1.6.23"
1188-
checksum: 10/f8823903d850322e4471e5e485cc99b036373175e38f4d17ace82ea9a107622881751593f764951a587f46f24a3bc57fb09d71394799fd04ef0865ef0a236cc8
1185+
"@nativescript-community/text@npm:1.6.24":
1186+
version: 1.6.24
1187+
resolution: "@nativescript-community/text@npm:1.6.24"
1188+
checksum: 10/6dd14378a99e02300688e58905d24fb1fb1d2067152f0163442994762789f536a6762d72ccc2397c79968751a62023551044b2cb89de8618842639ad88dad4a3
11891189
languageName: node
11901190
linkType: hard
11911191

@@ -10396,7 +10396,7 @@ __metadata:
1039610396
"@nativescript-community/sqlite": "npm:3.5.1"
1039710397
"@nativescript-community/svelte-native": "npm:1.0.32"
1039810398
"@nativescript-community/systemui": "npm:1.1.24"
10399-
"@nativescript-community/text": "npm:1.6.23"
10399+
"@nativescript-community/text": "npm:1.6.24"
1040010400
"@nativescript-community/ui-cameraview": "npm:0.6.2"
1040110401
"@nativescript-community/ui-canvas": "npm:4.6.46"
1040210402
"@nativescript-community/ui-canvaslabel": "npm:1.2.49"

0 commit comments

Comments
 (0)