Add extra pixel to titlebar on Windows 11
This commit is contained in:
parent
4b8cb9f040
commit
8b32811440
26 changed files with 139 additions and 53 deletions
|
@ -34,6 +34,7 @@ contextBridge.exposeInMainWorld('SignalContext', {
|
|||
i18n: SignalContext.i18n,
|
||||
version: SignalContext.getVersion(),
|
||||
platform: process.platform,
|
||||
isWindows11: SignalContext.OS.isWindows11(),
|
||||
executeMenuRole: SignalContext.executeMenuRole,
|
||||
}),
|
||||
document.getElementById('app')
|
||||
|
|
|
@ -28,7 +28,7 @@ import { createSetting } from '../util/preload';
|
|||
import { initialize as initializeLogging } from '../logging/set_up_renderer_logging';
|
||||
import { waitForSettingsChange } from './waitForSettingsChange';
|
||||
import { createNativeThemeListener } from '../context/createNativeThemeListener';
|
||||
import { isWindows, isLinux, isMacOS } from '../OS';
|
||||
import { isWindows, isWindows11, isLinux, isMacOS } from '../OS';
|
||||
|
||||
const params = new URLSearchParams(document.location.search);
|
||||
const configParam = params.get('config');
|
||||
|
@ -63,7 +63,9 @@ export type SignalContextType = {
|
|||
waitForChange: () => Promise<void>;
|
||||
};
|
||||
OS: {
|
||||
platform: string;
|
||||
isWindows: typeof isWindows;
|
||||
isWindows11: typeof isWindows11;
|
||||
isLinux: typeof isLinux;
|
||||
isMacOS: typeof isMacOS;
|
||||
};
|
||||
|
@ -89,7 +91,9 @@ export const SignalContext: SignalContextType = {
|
|||
waitForChange: waitForSettingsChange,
|
||||
},
|
||||
OS: {
|
||||
platform: process.platform,
|
||||
isWindows,
|
||||
isWindows11,
|
||||
isLinux,
|
||||
isMacOS,
|
||||
},
|
||||
|
|
|
@ -24,6 +24,7 @@ contextBridge.exposeInMainWorld('SignalContext', {
|
|||
ReactDOM.render(
|
||||
React.createElement(DebugLogWindow, {
|
||||
platform: process.platform,
|
||||
isWindows11: SignalContext.OS.isWindows11(),
|
||||
executeMenuRole: SignalContext.executeMenuRole,
|
||||
closeWindow: () => SignalContext.executeMenuRole('close'),
|
||||
downloadLog: (logText: string) =>
|
||||
|
|
|
@ -339,6 +339,7 @@ const renderPreferences = async () => {
|
|||
i18n: SignalContext.i18n,
|
||||
|
||||
platform: process.platform,
|
||||
isWindows11: SignalContext.OS.isWindows11(),
|
||||
executeMenuRole: SignalContext.executeMenuRole,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue