Use patched frameless-titlebar on Windows
This commit is contained in:
parent
79c52847cd
commit
5634601554
54 changed files with 1343 additions and 323 deletions
|
@ -5,6 +5,8 @@ import { createSelector } from 'reselect';
|
|||
|
||||
import type { LocalizerType, ThemeType } from '../../types/Util';
|
||||
import type { UUIDStringType } from '../../types/UUID';
|
||||
import type { LocaleMessagesType } from '../../types/I18N';
|
||||
import type { MenuOptionsType } from '../../types/menu';
|
||||
|
||||
import type { StateType } from '../reducer';
|
||||
import type { UserStateType } from '../ducks/user';
|
||||
|
@ -43,6 +45,11 @@ export const getIntl = createSelector(
|
|||
(state: UserStateType): LocalizerType => state.i18n
|
||||
);
|
||||
|
||||
export const getLocaleMessages = createSelector(
|
||||
getUser,
|
||||
(state: UserStateType): LocaleMessagesType => state.localeMessages
|
||||
);
|
||||
|
||||
export const getInteractionMode = createSelector(
|
||||
getUser,
|
||||
(state: UserStateType) => state.interactionMode
|
||||
|
@ -81,3 +88,18 @@ const getVersion = createSelector(
|
|||
export const getIsAlpha = createSelector(getVersion, isAlpha);
|
||||
|
||||
export const getIsBeta = createSelector(getVersion, isBeta);
|
||||
|
||||
export const getIsMainWindowMaximized = createSelector(
|
||||
getUser,
|
||||
(state: UserStateType): boolean => state.isMainWindowMaximized
|
||||
);
|
||||
|
||||
export const getIsMainWindowFullScreen = createSelector(
|
||||
getUser,
|
||||
(state: UserStateType): boolean => state.isMainWindowFullScreen
|
||||
);
|
||||
|
||||
export const getMenuOptions = createSelector(
|
||||
getUser,
|
||||
(state: UserStateType): MenuOptionsType => state.menuOptions
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue