mirror of
https://github.com/logseq/logseq.git
synced 2026-05-26 05:34:07 +00:00
Add app icon to title bar
This commit is contained in:
@@ -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)]])
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user