mirror of
https://github.com/pvrzz/directify.git
synced 2026-11-29 05:22:24 +00:00
Remove native menu bar and style scrollbars to match the app theme
The default File/Edit/View/Window/Help menu and unstyled OS scrollbars made the window look like a generic Electron shell rather than a real app. Menu.setApplicationMenu(null) drops the menu bar; theme.css now themes scrollbars (thin, dark thumb) for both WebKit and Firefox.
This commit is contained in:
@@ -153,3 +153,28 @@ body {
|
||||
.df-range-thumb::-moz-range-track {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
* {
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--df-surface-4) transparent;
|
||||
}
|
||||
|
||||
*::-webkit-scrollbar {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
*::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
*::-webkit-scrollbar-thumb {
|
||||
background-color: var(--df-surface-4);
|
||||
border-radius: var(--df-radius-lg);
|
||||
border: 2px solid transparent;
|
||||
background-clip: content-box;
|
||||
}
|
||||
|
||||
*::-webkit-scrollbar-thumb:hover {
|
||||
background-color: var(--df-text-muted);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user