opt: make duplicated action panel offstage on macos
This commit is contained in:
parent
8c5addc5c5
commit
b4f7fcabad
@ -374,7 +374,7 @@ class DesktopTab extends StatelessWidget {
|
|||||||
width: 78,
|
width: 78,
|
||||||
)),
|
)),
|
||||||
Offstage(
|
Offstage(
|
||||||
offstage: kUseCompatibleUiMode,
|
offstage: kUseCompatibleUiMode || Platform.isMacOS,
|
||||||
child: Row(children: [
|
child: Row(children: [
|
||||||
Offstage(
|
Offstage(
|
||||||
offstage: !showLogo,
|
offstage: !showLogo,
|
||||||
@ -555,7 +555,7 @@ class WindowActionPanelState extends State<WindowActionPanel>
|
|||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
Offstage(
|
Offstage(
|
||||||
offstage: !widget.showMinimize,
|
offstage: !widget.showMinimize || Platform.isMacOS,
|
||||||
child: ActionIcon(
|
child: ActionIcon(
|
||||||
message: 'Minimize',
|
message: 'Minimize',
|
||||||
icon: IconFont.min,
|
icon: IconFont.min,
|
||||||
@ -569,7 +569,7 @@ class WindowActionPanelState extends State<WindowActionPanel>
|
|||||||
isClose: false,
|
isClose: false,
|
||||||
)),
|
)),
|
||||||
Offstage(
|
Offstage(
|
||||||
offstage: !widget.showMaximize,
|
offstage: !widget.showMaximize || Platform.isMacOS,
|
||||||
child: Obx(() => ActionIcon(
|
child: Obx(() => ActionIcon(
|
||||||
message:
|
message:
|
||||||
widget.isMaximized.value ? "Restore" : "Maximize",
|
widget.isMaximized.value ? "Restore" : "Maximize",
|
||||||
@ -580,7 +580,7 @@ class WindowActionPanelState extends State<WindowActionPanel>
|
|||||||
isClose: false,
|
isClose: false,
|
||||||
))),
|
))),
|
||||||
Offstage(
|
Offstage(
|
||||||
offstage: !widget.showClose,
|
offstage: !widget.showClose || Platform.isMacOS,
|
||||||
child: ActionIcon(
|
child: ActionIcon(
|
||||||
message: 'Close',
|
message: 'Close',
|
||||||
icon: IconFont.close,
|
icon: IconFont.close,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user