aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa
diff options
context:
space:
mode:
authorJohn Horigan <unknown>2018-10-21 14:43:07 +1100
committerJohn Horigan <unknown>2018-10-21 14:43:07 +1100
commitd6f80fb1137d7cf42939fb55e35f4ba1060d4beb (patch)
treef7ff6b05a5706d4e63e188e29cd5c865e5e972a4 /cocoa
parent2b94cc2fe6ae043129a2043b78a5032ddf275ef6 (diff)
downloadscintilla-mirror-d6f80fb1137d7cf42939fb55e35f4ba1060d4beb.tar.gz
Bug [#2055]. Use dark info bar background when system is set to Dark Appearance.
Diffstat (limited to 'cocoa')
-rw-r--r--cocoa/InfoBar.mm5
-rw-r--r--cocoa/res/info_bar_bg.pngbin3081 -> 1221 bytes
-rw-r--r--cocoa/res/info_bar_bg@2x.pngbin2921 -> 1284 bytes
3 files changed, 4 insertions, 1 deletions
diff --git a/cocoa/InfoBar.mm b/cocoa/InfoBar.mm
index 07949c3ee..9fa1a19aa 100644
--- a/cocoa/InfoBar.mm
+++ b/cocoa/InfoBar.mm
@@ -223,12 +223,15 @@ static float BarFontSize = 10.0;
* Fill the background.
*/
- (void) drawRect: (NSRect) rect {
+ [[NSColor controlBackgroundColor] set];
+ [NSBezierPath fillRect: rect];
+
// Since the background is seamless, we don't need to take care for the proper offset.
// Simply tile the background over the invalid rectangle.
if (mBackground.size.width != 0) {
NSPoint target = {rect.origin.x, 0};
while (target.x < rect.origin.x + rect.size.width) {
- [mBackground drawAtPoint: target fromRect: NSZeroRect operation: NSCompositingOperationCopy fraction: 1];
+ [mBackground drawAtPoint: target fromRect: NSZeroRect operation: NSCompositingOperationSourceOver fraction: 1];
target.x += mBackground.size.width;
}
}
diff --git a/cocoa/res/info_bar_bg.png b/cocoa/res/info_bar_bg.png
index 79010fa70..d2be6c4db 100644
--- a/cocoa/res/info_bar_bg.png
+++ b/cocoa/res/info_bar_bg.png
Binary files differ
diff --git a/cocoa/res/info_bar_bg@2x.png b/cocoa/res/info_bar_bg@2x.png
index 486646a8e..ff74c8037 100644
--- a/cocoa/res/info_bar_bg@2x.png
+++ b/cocoa/res/info_bar_bg@2x.png
Binary files differ