File tree Expand file tree Collapse file tree 4 files changed +20
-24
lines changed Expand file tree Collapse file tree 4 files changed +20
-24
lines changed Original file line number Diff line number Diff line change 30
30
}
31
31
32
32
@utility button {
33
- @apply relative text-center text-nowrap outline-default bg-transparent;
33
+ @apply relative text-center text-nowrap outline-default bg-transparent no-drag ;
34
34
color : var (--font-color );
35
35
fill : var (--font-color );
36
36
font-size : 1em ;
37
37
height : var (--button-size );
38
38
line-height : var (--button-size );
39
- -webkit-app-region : no-drag;
40
39
41
40
& : hover {
42
41
@apply overlay;
Original file line number Diff line number Diff line change 3
3
}
4
4
5
5
.menubar-trigger {
6
- @apply px-3 py-1.5 flex rounded-sm;
7
- outline : none;
8
- user-select : none;
9
- line-height : 1 ;
10
- color : var (--font-color );
11
- align-items : center;
12
- justify-content : space-between;
6
+ @apply px-3 py-1.5 flex rounded-sm outline-none select-none items-center leading-none;
13
7
14
8
& [data-highlighted ],
15
9
& [data-state = 'open' ] {
16
- background-color : var ( -- overlay) ;
10
+ @apply overlay;
17
11
}
18
12
19
13
& : hover ,
20
14
& : focus {
21
- color : var (--font-color-active );
22
- background-color : var (--overlay );
15
+ @apply text-active overlay;
23
16
}
24
17
}
25
18
26
19
.menu-content ,
27
20
.menu-sub-content {
28
- @apply bg-secondary drop-shadow-lg p-1 z-10 rounded-sm;
21
+ @apply bg-secondary drop-shadow-lg p-1 z-10 rounded-sm no-drag ;
29
22
min-width : 200px ;
30
23
will-change : transform, opacity;
31
24
border : 1px solid var (--border-color );
32
- -webkit-app-region : no-drag;
33
25
}
34
26
35
27
.menu-item ,
Original file line number Diff line number Diff line change 22
22
-webkit-app-region : drag;
23
23
}
24
24
25
+ @utility no-drag {
26
+ -webkit-app-region : no-drag;
27
+ }
28
+
25
29
@utility overlay {
26
30
background-color : var (--overlay );
27
31
}
Original file line number Diff line number Diff line change 55
55
:style {:z-index -1 }}
56
56
@(rf/subscribe [::document.subs/title-bar ])]
57
57
[:div.flex.h-full.flex-1.drag ]
58
- [button {:action [::theme.events/cycle-mode ]
59
- :title (str " Theme mode - " theme-mode)
60
- :icon theme-mode
61
- :class " bg-primary" }]
62
- (when (and electron? (not fullscreen?) (not mac?))
63
- (into [:div.text-right ]
64
- (map button (window-control-buttons maximized?))))
65
- (when fullscreen?
66
- [button {:action [::window.events/toggle-fullscreen ]
67
- :icon " arrow-minimize" }])]))
58
+ [:div.flex
59
+ [button {:action [::theme.events/cycle-mode ]
60
+ :title (str " Theme mode - " theme-mode)
61
+ :icon theme-mode
62
+ :class " bg-primary" }]
63
+ (when (and electron? (not fullscreen?) (not mac?))
64
+ (into [:div.flex ]
65
+ (map button (window-control-buttons maximized?))))
66
+ (when fullscreen?
67
+ [button {:action [::window.events/toggle-fullscreen ]
68
+ :icon " arrow-minimize" }])]]))
You can’t perform that action at this time.
0 commit comments