From f5c661361fe6e2cbcde1918cd0e415cca07c2eee Mon Sep 17 00:00:00 2001
From: Abhishek Banthia <8280282+n0shake@users.noreply.github.com>
Date: Sun, 31 Mar 2024 14:04:52 -0400
Subject: [PATCH] Minor change to scroller.
---
Clocker/Clocker/en.lproj/Panel.xib | 12 ++++++------
.../Panel/ParentPanelController+ModernSlider.swift | 4 ++++
.../Panel/Rate Controller/UpcomingEventView.swift | 2 +-
3 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/Clocker/Clocker/en.lproj/Panel.xib b/Clocker/Clocker/en.lproj/Panel.xib
index 127963d..2948785 100755
--- a/Clocker/Clocker/en.lproj/Panel.xib
+++ b/Clocker/Clocker/en.lproj/Panel.xib
@@ -335,8 +335,8 @@
-
-
+
+
@@ -518,11 +518,11 @@
-
+
-
+
@@ -533,8 +533,8 @@
-
-
+
+
diff --git a/Clocker/Panel/ParentPanelController+ModernSlider.swift b/Clocker/Panel/ParentPanelController+ModernSlider.swift
index cda2dff..bfe0d2c 100644
--- a/Clocker/Panel/ParentPanelController+ModernSlider.swift
+++ b/Clocker/Panel/ParentPanelController+ModernSlider.swift
@@ -30,6 +30,10 @@ extension ParentPanelController {
resetModernSliderButton.layer?.masksToBounds = true
resetModernSliderButton.layer?.cornerRadius = resetModernSliderButton.frame.width / 2
}
+
+ if let scrollView = modernSlider.superview?.superview as? NSScrollView {
+ scrollView.scrollerStyle = NSScroller.Style.overlay
+ }
goBackwardsButton.image = Themer.shared().goBackwardsImage()
goForwardButton.image = Themer.shared().goForwardsImage()
diff --git a/Clocker/Panel/Rate Controller/UpcomingEventView.swift b/Clocker/Panel/Rate Controller/UpcomingEventView.swift
index 152c9c6..2f0ec59 100644
--- a/Clocker/Panel/Rate Controller/UpcomingEventView.swift
+++ b/Clocker/Panel/Rate Controller/UpcomingEventView.swift
@@ -34,7 +34,7 @@ class ThinScroller: NSScroller {
private var trackingArea: NSTrackingArea?
override class func scrollerWidth(for _: NSControl.ControlSize, scrollerStyle _: NSScroller.Style) -> CGFloat {
- return 15
+ return 10
}
override func drawKnobSlot(in _: NSRect, highlight _: Bool) {