remove support for hidden-inset (#11975)
This commit is contained in:
parent
7bcccdec41
commit
846be03f1d
3 changed files with 2 additions and 4 deletions
|
@ -813,8 +813,7 @@ struct Converter<atom::NativeWindowMac::TitleBarStyle> {
|
||||||
return false;
|
return false;
|
||||||
if (title_bar_style == "hidden") {
|
if (title_bar_style == "hidden") {
|
||||||
*out = atom::NativeWindowMac::HIDDEN;
|
*out = atom::NativeWindowMac::HIDDEN;
|
||||||
} else if (title_bar_style == "hidden-inset" || // TODO(kevinsawicki): Remove in 2.0, deprecate before then with warnings
|
} else if (title_bar_style == "hiddenInset") {
|
||||||
title_bar_style == "hiddenInset") {
|
|
||||||
*out = atom::NativeWindowMac::HIDDEN_INSET;
|
*out = atom::NativeWindowMac::HIDDEN_INSET;
|
||||||
} else if (title_bar_style == "customButtonsOnHover") {
|
} else if (title_bar_style == "customButtonsOnHover") {
|
||||||
*out = atom::NativeWindowMac::CUSTOM_BUTTONS_ON_HOVER;
|
*out = atom::NativeWindowMac::CUSTOM_BUTTONS_ON_HOVER;
|
||||||
|
|
|
@ -220,7 +220,6 @@ It creates a new `BrowserWindow` with native properties as set by the `options`.
|
||||||
* `hidden` - Results in a hidden title bar and a full size content window, yet
|
* `hidden` - Results in a hidden title bar and a full size content window, yet
|
||||||
the title bar still has the standard window controls ("traffic lights") in
|
the title bar still has the standard window controls ("traffic lights") in
|
||||||
the top left.
|
the top left.
|
||||||
* `hidden-inset` - Deprecated, use `hiddenInset` instead.
|
|
||||||
* `hiddenInset` - Results in a hidden title bar with an alternative look
|
* `hiddenInset` - Results in a hidden title bar with an alternative look
|
||||||
where the traffic light buttons are slightly more inset from the window edge.
|
where the traffic light buttons are slightly more inset from the window edge.
|
||||||
* `customButtonsOnHover` Boolean (optional) - Draw custom close, minimize,
|
* `customButtonsOnHover` Boolean (optional) - Draw custom close, minimize,
|
||||||
|
|
|
@ -927,7 +927,7 @@ describe('BrowserWindow module', () => {
|
||||||
show: false,
|
show: false,
|
||||||
width: 400,
|
width: 400,
|
||||||
height: 400,
|
height: 400,
|
||||||
titleBarStyle: 'hidden-inset'
|
titleBarStyle: 'hiddenInset'
|
||||||
})
|
})
|
||||||
const contentSize = w.getContentSize()
|
const contentSize = w.getContentSize()
|
||||||
assert.equal(contentSize[1], 400)
|
assert.equal(contentSize[1], 400)
|
||||||
|
|
Loading…
Reference in a new issue