mirror of https://github.com/keeweb/keeweb
added a logo on the custom titlebar for Windows
parent
1a9c54b237
commit
5b790e711a
@ -1,8 +1,27 @@
|
||||
.titlebar-buttons {
|
||||
.titlebar {
|
||||
font-size: 0;
|
||||
|
||||
.titlebar-custom & {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
display: flex;
|
||||
height: $custom-titlebar-height;
|
||||
}
|
||||
|
||||
&__logo {
|
||||
@include size(30px);
|
||||
padding: 6px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
&__grow {
|
||||
flex-grow: 1;
|
||||
-webkit-app-region: drag;
|
||||
}
|
||||
|
||||
> .fa {
|
||||
-webkit-app-region: no-drag;
|
||||
font-size: 16px;
|
||||
padding: 4px 16px;
|
||||
height: $custom-titlebar-height;
|
@ -1,9 +0,0 @@
|
||||
<div class="titlebar-buttons">
|
||||
<i class="fa fa-titlebar-minimize titlebar-buttons-minimize"></i>
|
||||
{{#if maximized}}
|
||||
<i class="fa fa-titlebar-restore titlebar-buttons-restore"></i>
|
||||
{{else}}
|
||||
<i class="fa fa-titlebar-maximize titlebar-buttons-maximize"></i>
|
||||
{{/if}}
|
||||
<i class="fa fa-titlebar-close titlebar-buttons-close"></i>
|
||||
</div>
|
@ -0,0 +1,15 @@
|
||||
<div class="titlebar">
|
||||
<div class="titlebar__icon">
|
||||
<img src="{{iconSrc}}" alt="logo" class="titlebar__logo" />
|
||||
</div>
|
||||
|
||||
<div class="titlebar__grow"></div>
|
||||
|
||||
<i class="fa fa-titlebar-minimize titlebar__minimize"></i>
|
||||
{{#if maximized}}
|
||||
<i class="fa fa-titlebar-restore titlebar__restore"></i>
|
||||
{{else}}
|
||||
<i class="fa fa-titlebar-maximize titlebar__maximize"></i>
|
||||
{{/if}}
|
||||
<i class="fa fa-titlebar-close titlebar__close"></i>
|
||||
</div>
|
Loading…
Reference in New Issue