1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00
This commit is contained in:
Laurent Cozic 2023-07-16 16:54:43 +01:00
parent 7a3c373336
commit c4874f02d7
2 changed files with 3 additions and 1 deletions

View File

@ -117,6 +117,7 @@ import sensorInfo, { SensorInfo } from './components/biometrics/sensorInfo';
import { getCurrentProfile } from '@joplin/lib/services/profileConfig';
import { getDatabaseName, getProfilesRootDir, getResourceDir, setDispatch } from './services/profiles';
import { ReactNode } from 'react';
import { parseShareCache } from '@joplin/lib/services/share/reducer';
type SideMenuPosition = 'left' | 'right';
@ -516,6 +517,7 @@ async function initialize(dispatch: Function) {
if (!Setting.value('clientId')) Setting.setValue('clientId', uuid.create());
reg.logger().info(`Client ID: ${Setting.value('clientId')}`);
BaseItem.syncShareCache = parseShareCache(Setting.value('sync.shareCache'));
if (Setting.value('firstStart')) {
const detectedLocale = shim.detectAndSetLocale(Setting);

View File

@ -137,7 +137,7 @@ function addMissingProperties(theme: Theme) {
return theme;
}
function addExtraStyles(style: any) {
export function addExtraStyles(style: any) {
style.selectedDividerColor = Color(style.dividerColor).darken(0.2).hex();
style.iconColor = Color(style.color).alpha(0.8);