Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbca8ba5

Browse files
authored
fix: added missing NetworkChart restoreGState & combinedView separators (#2444)
1 parent5effa64 commitbca8ba5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

‎Kit/Widgets/NetworkChart.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ public class NetworkChart: WidgetWrapper {
205205
bottomLinePath.lineWidth= lineWidth
206206
bottomLinePath.stroke()
207207

208+
context.restoreGState()
208209
context.saveGState()
209210

210211
varunderLinePath= topLinePath.copy()as!NSBezierPath

‎Stats/Views/CombinedView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ internal class CombinedView: NSObject, NSGestureRecognizerDelegate {
120120
w+= m.menuBar.view.frame.width+self.spacing
121121
i+=1
122122

123-
ifself.separator && i<self.activeModules.count{
123+
ifself.separator && i<2*self.activeModules.count-1{
124124
letseparator=NSView(frame:NSRect(x: w, y:3, width:1, height:Constants.Widget.height-6))
125125
separator.wantsLayer=true
126126
separator.layer?.backgroundColor=(separator.isDarkMode?NSColor.black:NSColor.white).cgColor

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp