mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-03-01 03:20:52 -08:00
Allow showing title bar in menu bar mode on macOS (#249)
This commit is contained in:
parent
ce7b938ea6
commit
d56867650a
3 changed files with 3 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
|||
const getViewBounds = (contentSize, findInPage = false, height, width) => {
|
||||
const showSidebar = global.sidebar;
|
||||
const showTitleBar = process.platform === 'darwin' && !global.attachToMenubar && global.titleBar;
|
||||
const showTitleBar = process.platform === 'darwin' && global.titleBar;
|
||||
const showNavigationBar = (process.platform === 'linux'
|
||||
&& global.attachToMenubar
|
||||
&& !global.sidebar) || global.navigationBar;
|
||||
|
|
|
|||
|
|
@ -387,8 +387,7 @@ const Preferences = ({
|
|||
<Switch
|
||||
edge="end"
|
||||
color="primary"
|
||||
checked={attachToMenubar ? false : titleBar}
|
||||
disabled={attachToMenubar}
|
||||
checked={titleBar}
|
||||
onChange={(e) => {
|
||||
requestSetPreference('titleBar', e.target.checked);
|
||||
requestRealignActiveWorkspace();
|
||||
|
|
|
|||
|
|
@ -211,7 +211,7 @@ const Main = ({
|
|||
workspaces,
|
||||
}) => {
|
||||
const workspacesList = getWorkspacesAsList(workspaces);
|
||||
const showTitleBar = titleBar || (window.mode !== 'menubar' && !navigationBar && !sidebar);
|
||||
const showTitleBar = window.process.platform === 'darwin' && titleBar;
|
||||
|
||||
return (
|
||||
<div className={classes.outerRoot}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue