Skip to content

Commit 27207ec

Browse files
committed
feat(layout): rename textFont and textSize to fontFamily and fontSize for clarity
1 parent f52b17d commit 27207ec

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

electron/common/layout/types.ts

+5-4
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,13 @@ export interface ItemLayout {
8484
* The font family to use for the stream content.
8585
* Example: 'Verdana' or 'Courier New'.
8686
*/
87-
textFont: string;
87+
fontFamily: string;
8888
/**
89-
* The font size to use for the stream content, in pixels.
90-
* Example: 12.
89+
* The font size to use for the stream content.
90+
* Using a number without unit may not yield desired results.
91+
* Example: '12px' (recommended) vs. '12' (not recommended).
9192
*/
92-
textSize: number;
93+
fontSize: string;
9394
/**
9495
* The color of the text in the stream content.
9596
* Can be color names (e.g. 'blue') or hex codes ('#00FF00').

electron/preload/index.d.ts

+5-4
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,13 @@ declare module 'common/layout/types' {
9696
* The font family to use for the stream content.
9797
* Example: 'Verdana' or 'Courier New'.
9898
*/
99-
textFont: string;
99+
fontFamily: string;
100100
/**
101-
* The font size to use for the stream content, in pixels.
102-
* Example: 12.
101+
* The font size to use for the stream content.
102+
* Using a number without unit may not yield desired results.
103+
* Example: '12px' (recommended) vs. '12' (not recommended).
103104
*/
104-
textSize: number;
105+
fontSize: string;
105106
/**
106107
* The color of the text in the stream content.
107108
* Can be color names (e.g. 'blue') or hex codes ('#00FF00').

0 commit comments

Comments
 (0)