mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Use patched frameless-titlebar on Windows
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user