Skip to content

Commit

Permalink
the border of vertical bars etc. are slightly transparent.
Browse files Browse the repository at this point in the history
  • Loading branch information
yujitach committed Dec 8, 2020
1 parent 2f44ebc commit c0d8a84
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Common/MenuMeters.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@
#define kMenuDoubleIndentFormat @" %@"
#define kMenuTripleIndentFormat @" %@"


#define kBorderAlpha 0.8f
4 changes: 2 additions & 2 deletions MenuExtras/MenuMeterCPU/MenuMeterCPUExtra.m
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ - (void)renderThermometerIntoImage:(NSImage *)image forProcessor:(uint32_t)proce
[userPath fill];
[systemColor set];
[systemPath fill];
[fgMenuThemeColor set];
[[fgMenuThemeColor colorWithAlphaComponent:kBorderAlpha] set];
[framePath stroke];

// Reset
Expand Down Expand Up @@ -583,7 +583,7 @@ - (void)renderHorizontalThermometerIntoImage:(NSImage *)image forProcessor:(uint
[userPath fill];
[systemColor set];
[systemPath fill];
[fgMenuThemeColor set];
[[fgMenuThemeColor colorWithAlphaComponent:kBorderAlpha] set];
[rightCapPath fill];

// Reset
Expand Down
7 changes: 4 additions & 3 deletions MenuExtras/MenuMeterMem/MenuMeterMemExtra.m
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ - (void)renderPieIntoImage:(NSImage *)image {
totalArc += inactiveMB / totalMB;

// Finish arc with the default color
[fgMenuThemeColor set];
[[fgMenuThemeColor colorWithAlphaComponent:kBorderAlpha] set];

// Close the circle if needed
if (totalArc < 1) {
Expand Down Expand Up @@ -558,7 +558,8 @@ - (void)renderPressureBar:(NSImage *)image {
[activeColor set];
[pressurePath fill];

[fgMenuThemeColor set];
[[fgMenuThemeColor colorWithAlphaComponent:kBorderAlpha] set];

[framePath stroke];

// Reset
Expand Down Expand Up @@ -609,7 +610,7 @@ - (void)renderBarIntoImage:(NSImage *)image {
[activePath fill];
[wireColor set];
[wirePath fill];
[fgMenuThemeColor set];
[[fgMenuThemeColor colorWithAlphaComponent:kBorderAlpha] set];
[framePath stroke];

// Reset
Expand Down

0 comments on commit c0d8a84

Please sign in to comment.