feat (Editor): Add an option to set the editor font family (#1078)
* feat (Editor): Add an option to set the editor font family Add the `editorFontFamily` property to the settings storage and implement font family selection functionality on editor-related pages. Also, update all pages that use the editor settings to support the newly added font family option. * refactor(editor): Optimize the logic for editor font settings Standardize the method for retrieving font settings on the editor page to avoid redundant calls to the `fetch()` method. Extract the font retrieval logic into variables or anonymous functions to improve code readability and performance.
This commit is contained in:
@@ -149,6 +149,7 @@ abstract final class GithubIds {
|
||||
'jjyou-github',
|
||||
'yeluonight',
|
||||
'Yinhono',
|
||||
'kuvaldini',
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -78,6 +78,8 @@ class SettingStore extends HiveStore {
|
||||
|
||||
late final editorFontSize = propertyDefault('editorFontSize', 12.5);
|
||||
|
||||
late final editorFontFamily = propertyDefault('editorFontFamily', '');
|
||||
|
||||
/// Trusted SSH host key fingerprints keyed by `serverId::keyType`.
|
||||
late final sshKnownHostFingerprints = propertyDefault<Map<String, String>>(
|
||||
'sshKnownHostFingerprints',
|
||||
|
||||
Reference in New Issue
Block a user