From 833bc4378dc28d11560fc3b129d71b282cc73b01 Mon Sep 17 00:00:00 2001 From: Angelo Verlain Date: Thu, 30 Mar 2023 01:06:34 +0200 Subject: [PATCH] fix #48 --- data/stylus/style.styl | 18 ++++- data/ui/window.ui | 171 ++++++++++++++++++++++------------------- 2 files changed, 105 insertions(+), 84 deletions(-) diff --git a/data/stylus/style.styl b/data/stylus/style.styl index 52d19fc..0087765 100644 --- a/data/stylus/style.styl +++ b/data/stylus/style.styl @@ -1,5 +1,6 @@ @import 'colors.styl'; @import 'notes.styl'; +@import 'util.styl'; .container { transition: 0.35s background-color ease-out, 0.35s color ease-out; @@ -14,25 +15,34 @@ color: inherit; } -.header-bar, .toolbar, .separator { +.header-bar, .toolbar-container { transition: none; } .container:not(:focus-within) { - .header-bar, .toolbar, .separator { + .header-bar, .toolbar-container { transition: 0.25s opacity ease-out; opacity: 0; + + &:hover { + opacity: 1; + transition: 0; + } + } + + .header-bar:backdrop > * { + opacity: 1; } } for name, info in colors { .container.style-{name} { - &, & popover > arrow, & popover > contents, ~/ { + &, & popover > arrow, & popover > contents, .toolbar-container, ~/ { background-color: info.bg; color: info.fg; } } - + .container.style-{name} .header-bar { background-color: info.header; } diff --git a/data/ui/window.ui b/data/ui/window.ui index ceacb20..7a76962 100644 --- a/data/ui/window.ui +++ b/data/ui/window.ui @@ -12,99 +12,110 @@ - + true - - - list-add-symbolic - app.new-note - New Note - - - - - open-menu-symbolic - app_menu - Main Menu - true - - - - - - - - - - true - - - true - word-char - 12 - 12 - 12 - 12 + + + true + start + + + list-add-symbolic + app.new-note + New Note + + + + + open-menu-symbolic + app_menu + Main Menu + true + + + + + - - - - - vertical - end - - end - + + true + true + + + true + word-char + 60 + 60 + 12 + 12 + + + - - + + + vertical end - - format-text-bold-symbolic - win.bold - false - Bold - - - - - format-text-italic-symbolic - win.italic - false - Italic - - - - - format-text-underline-symbolic - win.underline - false - Underline + + end + - - format-text-strikethrough-symbolic - win.strikethrough - false - Strikethrough + + end + + + + format-text-bold-symbolic + win.bold + false + Bold + + + + + format-text-italic-symbolic + win.italic + false + Italic + + + + + format-text-underline-symbolic + win.underline + false + Underline + + + + + format-text-strikethrough-symbolic + win.strikethrough + false + Strikethrough + + @@ -122,13 +133,13 @@
- All Notes + All Notes app.all-notes - Delete Note + Delete Note win.delete
- + \ No newline at end of file