import { SettingTypes , SettingActionTypes , ALWAYS_ON_TOP , RESTORE_DEFAULT_SETTINGS , ENABLE_DARK_THEME , TOGGLE_NOTIFICATION_SOUND , ENABLE_PROGRESS_ANIMATION , SET_NOTIFICATION_PROPERTY , ENABLE_FULLSCREEN_BREAK , USE_NATIVE_TITLE_BAR , ENABLE_STRICT_MODE , CLOSE_TO_TRAY , MINIMIZE_TO_TRAY , AUTO_START_WORK_TIME , ENABLE_VOICE_ASSISTANCE , } from "./types" ; export const setAlwaysOnTop = ( alwaysOnTop ) : SettingActionTypes => { return { type : ALWAYS_ON_TOP , payload : alwaysOnTop , } ; } ; export const togglenotificationSoundOn = ( ) => { return { type : TOGGLE_NOTIFICATION_SOUND , } ; } ; export const setEnableDarkTheme = ( enableDarkTheme ) : SettingActionTypes => { return { type : ENABLE_DARK_THEME , payload : enableDarkTheme , } ; } ; export const setEnableFullscreenBreak = ( enableFullscreenBreak ) : SettingActionTypes => { return { type : ENABLE_FULLSCREEN_BREAK , payload : enableFullscreenBreak , } ; } ; export const setEnableStrictMode = ( enableStrictMode ) : SettingActionTypes => { return { type : ENABLE_STRICT_MODE , payload : enableStrictMode , } ; } ; export const setEnableProgressAnimation = ( enableProgressAnimation ) : SettingActionTypes => { return { type : ENABLE_PROGRESS_ANIMATION , payload : enableProgressAnimation , } ; } ; export const setEnableVoiceAssistance = ( enableVoiceAssistance ) : SettingActionTypes => { return { type : ENABLE_VOICE_ASSISTANCE , payload : enableVoiceAssistance , } ; } ; export const setUseNativeTitlebar = ( useNativeTitlebar ) : SettingActionTypes => { return { type : USE_NATIVE_TITLE_BAR , payload : useNativeTitlebar , } ; } ; export const setNotificationProperty = ( notificationProperty ) : SettingActionTypes => { return { type : SET_NOTIFICATION_PROPERTY , payload : notificationProperty , } ; } ; export const setCloseToTray = ( closeToTray ) : SettingActionTypes => { return { type : CLOSE_TO_TRAY , payload : closeToTray , } ; } ; export const setMinimizeToTray = ( minimizeToTray ) : SettingActionTypes => { return { type : MINIMIZE_TO_TRAY , payload : minimizeToTray , } ; } ; export const setAutoStartWorkTime = ( autoStartWorkTime ) : SettingActionTypes => { return { type : AUTO_START_WORK_TIME , payload : autoStartWorkTime , } ; } ; export const restoreDefaultSettings = ( ) => ( { type : RESTORE_DEFAULT_SETTINGS , } ) ;