Add app icon to title bar

This commit is contained in:
MrWillCom
2022-04-12 20:43:35 +08:00
committed by Aitor Gamarra
parent 978ea0faa1
commit 48de4a5571
2 changed files with 26 additions and 5 deletions

View File

@@ -1,8 +1,11 @@
(ns frontend.components.win32-title-bar
(:require [rum.core :as rum]))
(:require [rum.core :as rum]
[frontend.components.svg :as svg]))
(rum/defc container
[]
[:p
[:div.cp__win32-title-bar#win32-title-bar
{}
["Hello, World!"]])
[:div.logo
{}
(svg/logo)]])

View File

@@ -1,3 +1,21 @@
.is-win32.is-electron {
--ls-win32-title-bar-height: 30px;
.cp__win32-title-bar {
z-index: 100;
position: fixed;
left: 0;
right: 0;
top: 0;
height: var(--ls-win32-title-bar-height);
display: flex;
> .logo {
width: 50px;
height: var(--ls-win32-title-bar-height);
display: flex;
align-items: flex-end;
justify-content: center;
}
}
.is-win32.is-electron {
--ls-win32-title-bar-height: 36px;
}