feat: preference to hide colored circles on mouse hover (closes #460)
This commit is contained in:
1 parent
ee02f25264
commit
02776f044c
3 files changed
+4
-1
No files matched your search
@@ -27,6 +27,7 @@ class Preferences {
|
||||
"showHiddenWindows": "true",
|
||||
"showHiddenWindows2": "true",
|
||||
"showTabsAsWindows": "false",
|
||||
"hideColoredCircles": "false",
|
||||
"windowDisplayDelay": "0",
|
||||
"theme": "0",
|
||||
"showOnScreen": "0",
|
||||
@@ -79,6 +80,7 @@ class Preferences {
|
||||
static var showMinimizedWindows: [Bool] { ["showMinimizedWindows", "showMinimizedWindows2"].map { defaults.bool($0) } }
|
||||
static var showHiddenWindows: [Bool] { ["showHiddenWindows", "showHiddenWindows2"].map { defaults.bool($0) } }
|
||||
static var showTabsAsWindows: Bool { defaults.bool("showTabsAsWindows") }
|
||||
static var hideColoredCircles: Bool { defaults.bool("hideColoredCircles") }
|
||||
static var windowDisplayDelay: DispatchTimeInterval { DispatchTimeInterval.milliseconds(defaults.int("windowDisplayDelay")) }
|
||||
static var fadeOutAnimation: Bool { defaults.bool("fadeOutAnimation") }
|
||||
static var hideSpaceNumberLabels: Bool { defaults.bool("hideSpaceNumberLabels") }
|
||||
|
||||
@@ -62,7 +62,7 @@ class ThumbnailView: NSStackView {
|
||||
if let shouldShowWindowControls = shouldShowWindowControls_ {
|
||||
self.shouldShowWindowControls = shouldShowWindowControls
|
||||
}
|
||||
let shouldShow = shouldShowWindowControls && isHighlighted
|
||||
let shouldShow = shouldShowWindowControls && isHighlighted && !Preferences.hideColoredCircles
|
||||
if isShowingWindowControls != shouldShow {
|
||||
isShowingWindowControls = shouldShow
|
||||
[closeIcon, minimizeIcon, maximizeIcon].forEach { $0.isHidden = !shouldShow }
|
||||
|
||||
@@ -22,6 +22,7 @@ class AppearanceTab: NSViewController, PreferencePane {
|
||||
LabelAndControl.makeLabelWithCheckbox(NSLocalizedString("Fade out animation:", comment: ""), "fadeOutAnimation", extraAction: { _ in App.app.thumbnailsPanel.updateFadeOutAnimation() }),
|
||||
LabelAndControl.makeLabelWithCheckbox(NSLocalizedString("Hide space number labels:", comment: ""), "hideSpaceNumberLabels"),
|
||||
LabelAndControl.makeLabelWithCheckbox(NSLocalizedString("Show standard tabs as windows:", comment: ""), "showTabsAsWindows"),
|
||||
LabelAndControl.makeLabelWithCheckbox(NSLocalizedString("Hide colored circles on mouse hover:", comment: ""), "hideColoredCircles"),
|
||||
])
|
||||
grid.column(at: 0).xPlacement = .trailing
|
||||
grid.rowAlignment = .lastBaseline
|
||||
|
||||
Reference in new issue
Block a user