mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: fix some typos in comments (#5161)
Signed-off-by: careworry <worrycare@outlook.com>
This commit is contained in:
parent
236374ea2e
commit
fab871eedb
@ -55,7 +55,7 @@ abstract class PluginBuilder {
|
||||
PluginType get pluginType;
|
||||
|
||||
/// The layoutType is used in the backend to determine the layout of the view.
|
||||
/// Currrently, AppFlowy supports 4 layout types: Document, Grid, Board, Calendar.
|
||||
/// Currently, AppFlowy supports 4 layout types: Document, Grid, Board, Calendar.
|
||||
ViewLayoutPB? get layoutType => ViewLayoutPB.Document;
|
||||
}
|
||||
|
||||
|
@ -589,7 +589,7 @@ GoRoute _rootRoute(Widget child) {
|
||||
return GoRoute(
|
||||
path: '/',
|
||||
redirect: (context, state) async {
|
||||
// Every time before navigating to splash screen, we check if user is already logged in desktop. It is used to skip showing splash screen when user just changes apperance settings like theme mode.
|
||||
// Every time before navigating to splash screen, we check if user is already logged in desktop. It is used to skip showing splash screen when user just changes appearance settings like theme mode.
|
||||
final userResponse = await getIt<AuthService>().getUser();
|
||||
final routeName = userResponse.fold(
|
||||
(user) => DesktopHomeScreen.routeName,
|
||||
|
@ -155,28 +155,28 @@ class AppearanceSettingsCubit extends Cubit<AppearanceSettingsState> {
|
||||
void resetFontFamily() =>
|
||||
setFontFamily(DefaultAppearanceSettings.kDefaultFontFamily);
|
||||
|
||||
/// Update document cursor color in the apperance settings and emit an updated state.
|
||||
/// Update document cursor color in the appearance settings and emit an updated state.
|
||||
void setDocumentCursorColor(Color color) {
|
||||
_appearanceSettings.documentSetting.cursorColor = color.toHexString();
|
||||
_saveAppearanceSettings();
|
||||
emit(state.copyWith(documentCursorColor: color));
|
||||
}
|
||||
|
||||
/// Reset document cursor color in the apperance settings
|
||||
/// Reset document cursor color in the appearance settings
|
||||
void resetDocumentCursorColor() {
|
||||
_appearanceSettings.documentSetting.cursorColor = '';
|
||||
_saveAppearanceSettings();
|
||||
emit(state.copyWith(documentCursorColor: null));
|
||||
}
|
||||
|
||||
/// Update document selection color in the apperance settings and emit an updated state.
|
||||
/// Update document selection color in the appearance settings and emit an updated state.
|
||||
void setDocumentSelectionColor(Color color) {
|
||||
_appearanceSettings.documentSetting.selectionColor = color.toHexString();
|
||||
_saveAppearanceSettings();
|
||||
emit(state.copyWith(documentSelectionColor: color));
|
||||
}
|
||||
|
||||
/// Reset document selection color in the apperance settings
|
||||
/// Reset document selection color in the appearance settings
|
||||
void resetDocumentSelectionColor() {
|
||||
_appearanceSettings.documentSetting.selectionColor = '';
|
||||
_saveAppearanceSettings();
|
||||
|
Loading…
Reference in New Issue
Block a user