Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified apps/app_macos/assets/images/logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"images" : [
{
"filename" : "menubar.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true,
"template-rendering-intent" : "template"
}
}
Binary file not shown.
14 changes: 14 additions & 0 deletions apps/app_macos/macos/Runner/StatusPanelPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ class StatusPanelPlugin: NSObject, FlutterPlugin, NSWindowDelegate {

private static func icon(for status: String) -> NSImage? {
if status == "recording" { return dot() }
if status == "idle", let glyph = glyph() { return glyph }
let name: String
switch status {
case "paused": name = "pause.circle"
Expand All @@ -267,6 +268,19 @@ class StatusPanelPlugin: NSObject, FlutterPlugin, NSWindowDelegate {
return image
}

/// The logo (lowercase o on a note line), vector template from
/// Assets.xcassets/MenuBarGlyph, 18 pt high; nil if the asset is missing.
private static func glyph() -> NSImage? {
guard let source = NSImage(named: "MenuBarGlyph"),
let image = source.copy() as? NSImage,
image.size.height > 0 else { return nil }
let height: CGFloat = 18
image.size = NSSize(width: image.size.width * height / image.size.height, height: height)
image.isTemplate = true
image.accessibilityDescription = "Oats"
return image
}

/// The only colored mark of the app: a green dot while recording. The
/// color is resolved at draw time, so it follows the menu bar appearance.
private static func dot() -> NSImage {
Expand Down
7 changes: 7 additions & 0 deletions design/logo/icon-small.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions design/logo/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions design/logo/menubar.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading