chore: Simplify Windows styles and cli name population
This commit is contained in:
1 parent
374a13cd07
commit
530cd0298a
3 files changed
+26
-30
No files matched your search
@@ -42,7 +42,6 @@
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
// Windows OS specific overflow.
|
||||
&.layout-scroll {
|
||||
.rose-layout-global-body {
|
||||
overflow-y: auto;
|
||||
@@ -156,16 +155,13 @@
|
||||
padding-left: sizing.rems(l) * 3;
|
||||
}
|
||||
|
||||
.utilities-actions {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
||||
button {
|
||||
background: transparent;
|
||||
border: transparent;
|
||||
color: var(--white);
|
||||
margin: sizing.rems(xs);
|
||||
}
|
||||
.button-window-minimize,
|
||||
.button-window-fullscreen,
|
||||
.button-window-close {
|
||||
background: transparent;
|
||||
border: transparent;
|
||||
color: var(--white);
|
||||
margin: sizing.rems(xs);
|
||||
}
|
||||
|
||||
.logotype {
|
||||
|
||||
@@ -20,23 +20,24 @@
|
||||
|
||||
<header.utilities as |utilities|>
|
||||
{{#if this.isWindowsOS}}
|
||||
<span class='utilities-actions'>
|
||||
<Rose::Button
|
||||
@iconOnly='minus-plain'
|
||||
@style='secondary'
|
||||
{{on 'click' (route-action 'minimize')}}
|
||||
/>
|
||||
<Rose::Button
|
||||
@iconOnly='box-outline'
|
||||
@style='secondary'
|
||||
{{on 'click' (route-action 'toggleFullScreen')}}
|
||||
/>
|
||||
<Rose::Button
|
||||
@iconOnly='cancel-plain'
|
||||
@style='warning'
|
||||
{{on 'click' (route-action 'close')}}
|
||||
/>
|
||||
</span>
|
||||
<Rose::Button
|
||||
@iconOnly='cancel-plain'
|
||||
@style='warning'
|
||||
class='button-window-close'
|
||||
{{on 'click' (route-action 'close')}}
|
||||
/>
|
||||
<Rose::Button
|
||||
@iconOnly='box-outline'
|
||||
@style='secondary'
|
||||
class='button-window-fullscreen'
|
||||
{{on 'click' (route-action 'toggleFullScreen')}}
|
||||
/>
|
||||
<Rose::Button
|
||||
@iconOnly='minus-plain'
|
||||
@style='secondary'
|
||||
class='button-window-minimize'
|
||||
{{on 'click' (route-action 'minimize')}}
|
||||
/>
|
||||
{{/if}}
|
||||
|
||||
{{#if this.session.isAuthenticated}}
|
||||
|
||||
@@ -4,8 +4,7 @@ const { isWindows } = require('../helpers/platform.js');
|
||||
module.exports = {
|
||||
// Returns boundary cli path
|
||||
path: () => {
|
||||
let name = 'boundary';
|
||||
if (isWindows()) name = 'boundary.exe';
|
||||
const name = isWindows() ? 'boundary.exe' : 'boundary';
|
||||
return path.resolve(__dirname, '..', '..', 'cli', name);
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user