Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

fix(desktop): 优化菜单栏图标发丝层次与耳环

Dash42623cff8992
diff --git a/apps/desktop/native/menubar/macos-menubar-helper.swift b/apps/desktop/native/menubar/macos-menubar-helper.swift
index 92a746bf33..00124ff543 100644
--- a/apps/desktop/native/menubar/macos-menubar-helper.swift
+++ b/apps/desktop/native/menubar/macos-menubar-helper.swift
@@ -387,19 +387,92 @@ enum Logos {
return image
}
- /// Cindy "A" mark on an 18 pt canvas with 14 pt ink, the menu bar size from the brand kit.
- /// The mark is fitted to 17pt of the 18pt canvas (its path bounds are x 2.4–21.5,
- /// y 1.2–22 in a 24-unit box) so it matches the optical size of other menu bar extras.
- static let statusIcon: NSImage? = {
+ /// Opaque silhouette with tonal, tapered strands and a larger, left-shifted earring.
+ /// Fit the mark to the 18pt status canvas; other brand surfaces keep their original mark.
+ static func statusIcon(dark: Bool) -> NSImage? {
+ dark ? darkStatusIcon : lightStatusIcon
+ }
+
+ private static let lightStatusIcon = makeStatusIcon(dark: false)
+ private static let darkStatusIcon = makeStatusIcon(dark: true)
+
+ private static func makeStatusIcon(dark: Bool) -> NSImage? {
+ let silhouette = dark ? "#ffffff" : "#000000"
+ let strand = dark ? "#686868" : "#bdbdbd"
+ let earring = "M 10.22879,11.96118 L 13.40721,13.91787 L 13.40721,14.65125 L 10.22879,16.60782 L 10.22879,15.50708 L 12.30648,14.28390 L 10.22879,13.06192 L 10.22879,11.96118 Z"
+ // Gray overlays sit on the opaque silhouette rather than cutting holes in it.
+ let hairStrands = """
+ <path fill="\(strand)" fill-opacity="0.58" d="
+ M 17.700,4.600 L 17.423,4.473 L 17.142,4.366 L 16.861,4.275 L 16.578,4.200 L 16.295,4.139 L 16.012,4.094
+ L 15.729,4.063 L 15.446,4.047 L 15.164,4.044 L 14.883,4.056 L 14.604,4.081 L 14.327,4.119 L 14.051,4.171
+ L 13.779,4.235 L 13.509,4.311 L 13.243,4.399 L 12.980,4.498 L 12.721,4.609 L 12.466,4.730 L 12.216,4.862
+ L 11.970,5.003 L 11.730,5.154 L 11.494,5.314 L 11.264,5.482 L 11.040,5.658 L 10.822,5.843 L 10.610,6.034
+ L 10.404,6.233 L 10.205,6.438 L 10.012,6.649 L 9.826,6.865 L 9.647,7.087 L 9.476,7.313 L 9.312,7.544 L
+ 9.156,7.779 L 9.007,8.017 L 8.866,8.259 L 8.734,8.503 L 8.611,8.750 L 8.500,9.000 L 8.500,9.000 L
+ 8.651,8.772 L 8.805,8.546 L 8.965,8.321 L 9.129,8.100 L 9.300,7.882 L 9.475,7.668 L 9.656,7.458 L
+ 9.842,7.252 L 10.033,7.051 L 10.229,6.855 L 10.429,6.663 L 10.634,6.477 L 10.842,6.297 L 11.055,6.122 L
+ 11.272,5.954 L 11.493,5.792 L 11.717,5.636 L 11.944,5.488 L 12.175,5.347 L 12.409,5.213 L 12.647,5.088 L
+ 12.887,4.970 L 13.130,4.860 L 13.377,4.760 L 13.626,4.668 L 13.878,4.585 L 14.132,4.512 L 14.390,4.449 L
+ 14.650,4.396 L 14.914,4.353 L 15.180,4.322 L 15.448,4.302 L 15.720,4.294 L 15.994,4.298 L 16.271,4.315 L
+ 16.551,4.345 L 16.834,4.389 L 17.120,4.446 L 17.408,4.517 L 17.700,4.600 Z
+ "/>
+ <path fill="\(strand)" fill-opacity="0.48" d="
+ M 7.600,10.600 L 7.481,10.754 L 7.369,10.910 L 7.262,11.064 L 7.160,11.219 L 7.063,11.372 L 6.971,11.525
+ L 6.883,11.677 L 6.800,11.829 L 6.722,11.980 L 6.649,12.130 L 6.581,12.280 L 6.519,12.429 L 6.461,12.577
+ L 6.409,12.724 L 6.362,12.871 L 6.321,13.018 L 6.285,13.163 L 6.255,13.308 L 6.230,13.452 L 6.212,13.595
+ L 6.199,13.737 L 6.192,13.877 L 6.192,14.017 L 6.197,14.155 L 6.209,14.292 L 6.226,14.428 L 6.250,14.561
+ L 6.280,14.693 L 6.316,14.823 L 6.357,14.951 L 6.405,15.077 L 6.459,15.200 L 6.519,15.322 L 6.584,15.441
+ L 6.655,15.557 L 6.732,15.671 L 6.815,15.783 L 6.903,15.892 L 6.998,15.998 L 7.100,16.100 L 7.100,16.100
+ L 7.028,15.976 L 6.959,15.854 L 6.895,15.732 L 6.837,15.611 L 6.784,15.489 L 6.736,15.368 L 6.693,15.247
+ L 6.655,15.126 L 6.621,15.005 L 6.593,14.883 L 6.568,14.762 L 6.549,14.640 L 6.533,14.517 L 6.522,14.393
+ L 6.515,14.269 L 6.512,14.144 L 6.512,14.018 L 6.517,13.890 L 6.526,13.761 L 6.538,13.630 L 6.555,13.498
+ L 6.575,13.364 L 6.599,13.229 L 6.627,13.091 L 6.658,12.952 L 6.694,12.810 L 6.734,12.667 L 6.777,12.521
+ L 6.824,12.373 L 6.876,12.223 L 6.931,12.071 L 6.990,11.917 L 7.053,11.760 L 7.120,11.601 L 7.191,11.441
+ L 7.266,11.277 L 7.345,11.112 L 7.427,10.944 L 7.513,10.774 L 7.600,10.600 Z
+ "/>
+ <path fill="\(strand)" fill-opacity="0.36" d="
+ M 9.500,12.300 L 9.421,12.437 L 9.350,12.576 L 9.284,12.718 L 9.224,12.860 L 9.168,13.003 L 9.118,13.147
+ L 9.072,13.292 L 9.032,13.438 L 8.996,13.584 L 8.965,13.730 L 8.939,13.876 L 8.919,14.022 L 8.902,14.168
+ L 8.891,14.313 L 8.885,14.458 L 8.883,14.602 L 8.886,14.745 L 8.894,14.887 L 8.906,15.028 L 8.923,15.168
+ L 8.945,15.305 L 8.971,15.441 L 9.001,15.576 L 9.036,15.708 L 9.075,15.837 L 9.118,15.965 L 9.165,16.089
+ L 9.216,16.211 L 9.271,16.331 L 9.329,16.447 L 9.392,16.559 L 9.457,16.669 L 9.527,16.775 L 9.599,16.877
+ L 9.675,16.975 L 9.754,17.069 L 9.836,17.159 L 9.920,17.245 L 10.008,17.326 L 10.100,17.400 L
+ 10.100,17.400 L 10.030,17.306 L 9.960,17.210 L 9.894,17.113 L 9.829,17.013 L 9.768,16.911 L 9.709,16.806
+ L 9.653,16.700 L 9.600,16.591 L 9.550,16.479 L 9.502,16.366 L 9.457,16.251 L 9.414,16.133 L 9.375,16.014
+ L 9.338,15.893 L 9.304,15.770 L 9.273,15.646 L 9.244,15.520 L 9.219,15.392 L 9.196,15.263 L 9.177,15.132
+ L 9.160,15.000 L 9.146,14.867 L 9.135,14.732 L 9.128,14.596 L 9.124,14.459 L 9.123,14.321 L 9.125,14.182
+ L 9.131,14.041 L 9.140,13.900 L 9.153,13.758 L 9.170,13.615 L 9.191,13.471 L 9.215,13.327 L 9.244,13.182
+ L 9.276,13.036 L 9.313,12.890 L 9.354,12.743 L 9.399,12.596 L 9.448,12.449 L 9.500,12.300 Z
+ "/>
+ <path fill="\(strand)" fill-opacity="0.52" d="
+ M 18.000,7.700 L 17.877,7.640 L 17.751,7.591 L 17.621,7.550 L 17.489,7.517 L 17.355,7.493 L 17.220,7.476
+ L 17.082,7.467 L 16.944,7.465 L 16.805,7.471 L 16.665,7.484 L 16.524,7.504 L 16.384,7.530 L 16.244,7.564
+ L 16.105,7.603 L 15.966,7.649 L 15.828,7.701 L 15.691,7.758 L 15.555,7.821 L 15.421,7.889 L 15.289,7.962
+ L 15.158,8.040 L 15.029,8.122 L 14.903,8.209 L 14.779,8.299 L 14.657,8.394 L 14.537,8.491 L 14.420,8.593
+ L 14.306,8.697 L 14.195,8.804 L 14.087,8.913 L 13.982,9.025 L 13.880,9.139 L 13.782,9.255 L 13.687,9.372
+ L 13.595,9.491 L 13.507,9.611 L 13.423,9.731 L 13.344,9.853 L 13.268,9.975 L 13.200,10.100 L
+ 13.200,10.100 L 13.300,10.000 L 13.400,9.898 L 13.501,9.795 L 13.604,9.694 L 13.710,9.593 L 13.817,9.492
+ L 13.926,9.393 L 14.037,9.295 L 14.149,9.198 L 14.263,9.102 L 14.378,9.009 L 14.495,8.917 L 14.613,8.827
+ L 14.731,8.739 L 14.851,8.653 L 14.972,8.570 L 15.093,8.489 L 15.215,8.411 L 15.338,8.335 L 15.461,8.263
+ L 15.585,8.194 L 15.709,8.128 L 15.833,8.065 L 15.958,8.006 L 16.083,7.951 L 16.208,7.900 L 16.333,7.853
+ L 16.459,7.810 L 16.584,7.772 L 16.710,7.738 L 16.837,7.709 L 16.963,7.685 L 17.090,7.666 L 17.218,7.653
+ L 17.346,7.646 L 17.475,7.644 L 17.604,7.649 L 17.735,7.660 L 17.866,7.678 L 18.000,7.700 Z
+ "/>
+ """
let svg = """
- <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18"><path fill="#000" fill-rule="evenodd" transform="translate(-0.765 -0.445) scale(0.8157)" d="\(cindyMarkPath)"/></svg>
+ <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18">
+ <g transform="translate(-0.765 -0.445) scale(0.8157)">
+ <path fill="\(silhouette)" fill-rule="evenodd" d="\(cindySilhouettePath) \(earring)"/>
+ \(hairStrands)
+ </g>
+ </svg>
"""
guard let data = svg.data(using: .utf8), let image = NSImage(data: data) else { return nil }
- image.isTemplate = true
+ image.isTemplate = false
image.size = NSSize(width: 18, height: 18)
image.accessibilityDescription = "Cindy"
return image
- }()
+ }
}
struct LogoView: View {
@@ -625,6 +698,7 @@ final class StatusController: NSObject, NSWindowDelegate {
let store: MenubarStore
private let statusItem: NSStatusItem
+ private var statusAppearanceObservation: NSKeyValueObservation?
private var panel: MenubarPanel?
private var hosting: NSHostingView<PanelRoot>?
private var outsideMonitor: Any?
@@ -643,7 +717,13 @@ final class StatusController: NSObject, NSWindowDelegate {
statusItem = NSStatusBar.system.statusItem(withLength: NSStatusItem.variableLength)
super.init()
if let button = statusItem.button {
- button.image = Logos.statusIcon
+ // Wallpaper can give the menu bar a different appearance from the app.
+ statusAppearanceObservation = button.observe(\.effectiveAppearance, options: [.initial, .new]) { button, _ in
+ MainActor.assumeIsolated {
+ let dark = button.effectiveAppearance.bestMatch(from: [.aqua, .darkAqua]) == .darkAqua
+ button.image = Logos.statusIcon(dark: dark)
+ }
+ }
button.imagePosition = .imageLeading
button.target = self
button.action = #selector(toggle)
@@ -3455,8 +3535,8 @@ struct StatusPreview: View {
Spacer()
Image(systemName: "wifi").font(.system(size: 12, weight: .semibold)).opacity(0.5).padding(.horizontal, 6)
HStack(spacing: 5) {
- if let icon = Logos.statusIcon {
- Image(nsImage: icon).renderingMode(.template).resizable().frame(width: 16, height: 16)
+ if let icon = Logos.statusIcon(dark: dark) {
+ Image(nsImage: icon).renderingMode(.original).resizable().frame(width: 16, height: 16)
}
if !text.isEmpty {
Text(text).font(.system(size: 12, weight: .semibold)).monospacedDigit().lineLimit(1).fixedSize()
@@ -3639,4 +3719,5 @@ enum MenubarHelperMain {
}
// The Cindy "A" mark from the brand kit (24pt viewBox, 20pt ink, even-odd `>` cut-out).
-let cindyMarkPath = "M 18.163,3.549 C 18.561,3.879 18.876,4.238 19.198,4.64 C 19.268,4.71 19.339,4.78 19.411,4.852 C 19.492,4.934 19.574,5.015 19.658,5.099 C 19.707,5.148 19.756,5.196 19.807,5.246 C 20.975,6.474 21.548,8.384 21.521,10.044 C 21.495,10.615 21.368,11.261 20.977,11.697 C 20.936,11.732 20.894,11.768 20.852,11.805 C 20.852,11.562 20.852,11.32 20.852,11.07 C 20.633,11.931 20.637,12.526 20.946,13.369 C 21.317,14.501 21.213,15.792 20.72,16.867 C 20.364,17.549 20.364,17.549 20.025,17.775 C 20.039,17.703 20.054,17.631 20.068,17.557 C 20.077,17.511 20.077,17.511 20.123,17.275 C 20.141,17.183 20.159,17.09 20.178,16.994 C 20.188,16.919 20.198,16.843 20.209,16.764 C 20.178,16.734 20.148,16.704 20.117,16.673 C 20.107,16.753 20.098,16.833 20.088,16.915 C 19.896,17.855 19.189,18.653 18.463,19.244 C 17.965,19.568 17.495,19.757 16.902,19.796 C 17.054,19.644 17.205,19.492 17.361,19.336 C 17.086,19.336 17.086,19.336 16.81,19.428 C 16.621,19.435 16.431,19.436 16.242,19.434 C 16.142,19.433 16.042,19.432 15.939,19.431 C 15.863,19.43 15.787,19.429 15.708,19.428 C 15.799,19.368 15.89,19.307 15.983,19.244 C 15.898,19.247 15.813,19.249 15.725,19.251 C 15.611,19.253 15.498,19.254 15.381,19.256 C 15.269,19.258 15.157,19.26 15.042,19.262 C 14.677,19.243 14.4,19.174 14.055,19.061 C 14.149,18.786 14.248,18.513 14.347,18.24 C 14.374,18.162 14.401,18.084 14.429,18.003 C 14.638,17.438 14.638,17.438 14.908,17.298 C 15.231,17.321 15.513,17.399 15.823,17.494 C 16.353,17.646 16.809,17.746 17.361,17.683 C 17.713,17.485 17.801,17.281 17.918,16.902 C 18.096,16.333 18.096,16.333 18.372,16.122 C 18.432,16.122 18.493,16.122 18.555,16.122 C 18.55,16.051 18.544,15.981 18.538,15.909 C 18.555,15.662 18.555,15.662 18.693,15.533 C 18.87,15.345 18.853,15.256 18.848,15.002 C 18.875,14.596 19.004,14.442 19.302,14.17 C 19.37,14.114 19.439,14.059 19.509,14.002 C 19.658,13.825 19.658,13.825 19.651,13.601 C 19.559,13.348 19.446,13.159 19.29,12.941 C 18.966,12.484 18.91,12.168 18.897,11.606 C 18.895,11.541 18.894,11.477 18.892,11.41 C 18.886,11.203 18.882,10.996 18.877,10.788 C 18.858,9.96 18.837,9.138 18.739,8.314 C 18.678,8.314 18.618,8.314 18.555,8.314 C 18.538,8.426 18.521,8.538 18.504,8.653 C 18.133,10.262 16.849,11.349 15.68,12.413 C 14.855,13.168 14.222,13.835 14.115,14.994 C 14.099,15.675 14.158,16.228 14.422,16.856 C 14.109,16.759 13.87,16.672 13.595,16.489 C 13.563,16.603 13.531,16.716 13.498,16.833 C 13.279,17.493 12.925,18.134 12.467,18.657 C 12.309,18.877 12.309,18.877 12.315,19.07 C 12.413,19.269 12.522,19.396 12.677,19.554 C 12.985,19.893 13.235,20.25 13.481,20.634 C 13.515,20.688 13.55,20.741 13.585,20.797 C 14.146,21.686 14.146,21.686 14.146,22 C 13.75,21.874 13.374,21.722 12.993,21.558 C 11.378,20.9 9.722,20.714 7.992,20.622 C 8.028,20.575 8.064,20.528 8.101,20.479 C 8.37,20.121 8.637,19.761 8.894,19.394 C 8.947,19.317 9.001,19.241 9.056,19.162 C 9.187,18.969 9.187,18.969 9.278,18.785 C 9.245,18.78 9.245,18.78 9.077,18.756 C 8.797,18.688 8.6,18.576 8.36,18.418 C 8.36,18.478 8.36,18.539 8.36,18.602 C 7.479,18.463 6.695,17.922 6.155,17.224 C 5.981,16.926 5.832,16.623 5.696,16.305 C 5.74,16.453 5.784,16.6 5.828,16.747 C 5.853,16.829 5.877,16.911 5.903,16.996 C 5.954,17.164 6.008,17.332 6.064,17.499 C 5.299,17.281 4.772,16.857 4.318,16.213 C 3.714,15.033 3.82,13.901 4.043,12.631 C 3.577,13.432 3.387,14.102 3.308,15.019 C 2.824,14.591 2.572,13.903 2.481,13.274 C 2.397,11.547 3.913,10.126 4.944,8.882 C 5.479,8.227 5.879,7.592 6.224,6.822 C 6.567,6.064 6.997,5.455 7.533,4.824 C 7.593,4.75 7.652,4.675 7.713,4.599 C 10.235,1.556 15.063,1.158 18.163,3.549 Z M 11.024,12.539 L 13.412,14.009 L 13.412,14.56 L 11.024,16.03 L 11.024,15.203 L 12.585,14.284 L 11.024,13.366 L 11.024,12.539 Z"
+let cindySilhouettePath = "M 18.163,3.549 C 18.561,3.879 18.876,4.238 19.198,4.64 C 19.268,4.71 19.339,4.78 19.411,4.852 C 19.492,4.934 19.574,5.015 19.658,5.099 C 19.707,5.148 19.756,5.196 19.807,5.246 C 20.975,6.474 21.548,8.384 21.521,10.044 C 21.495,10.615 21.368,11.261 20.977,11.697 C 20.936,11.732 20.894,11.768 20.852,11.805 C 20.852,11.562 20.852,11.32 20.852,11.07 C 20.633,11.931 20.637,12.526 20.946,13.369 C 21.317,14.501 21.213,15.792 20.72,16.867 C 20.364,17.549 20.364,17.549 20.025,17.775 C 20.039,17.703 20.054,17.631 20.068,17.557 C 20.077,17.511 20.077,17.511 20.123,17.275 C 20.141,17.183 20.159,17.09 20.178,16.994 C 20.188,16.919 20.198,16.843 20.209,16.764 C 20.178,16.734 20.148,16.704 20.117,16.673 C 20.107,16.753 20.098,16.833 20.088,16.915 C 19.896,17.855 19.189,18.653 18.463,19.244 C 17.965,19.568 17.495,19.757 16.902,19.796 C 17.054,19.644 17.205,19.492 17.361,19.336 C 17.086,19.336 17.086,19.336 16.81,19.428 C 16.621,19.435 16.431,19.436 16.242,19.434 C 16.142,19.433 16.042,19.432 15.939,19.431 C 15.863,19.43 15.787,19.429 15.708,19.428 C 15.799,19.368 15.89,19.307 15.983,19.244 C 15.898,19.247 15.813,19.249 15.725,19.251 C 15.611,19.253 15.498,19.254 15.381,19.256 C 15.269,19.258 15.157,19.26 15.042,19.262 C 14.677,19.243 14.4,19.174 14.055,19.061 C 14.149,18.786 14.248,18.513 14.347,18.24 C 14.374,18.162 14.401,18.084 14.429,18.003 C 14.638,17.438 14.638,17.438 14.908,17.298 C 15.231,17.321 15.513,17.399 15.823,17.494 C 16.353,17.646 16.809,17.746 17.361,17.683 C 17.713,17.485 17.801,17.281 17.918,16.902 C 18.096,16.333 18.096,16.333 18.372,16.122 C 18.432,16.122 18.493,16.122 18.555,16.122 C 18.55,16.051 18.544,15.981 18.538,15.909 C 18.555,15.662 18.555,15.662 18.693,15.533 C 18.87,15.345 18.853,15.256 18.848,15.002 C 18.875,14.596 19.004,14.442 19.302,14.17 C 19.37,14.114 19.439,14.059 19.509,14.002 C 19.658,13.825 19.658,13.825 19.651,13.601 C 19.559,13.348 19.446,13.159 19.29,12.941 C 18.966,12.484 18.91,12.168 18.897,11.606 C 18.895,11.541 18.894,11.477 18.892,11.41 C 18.886,11.203 18.882,10.996 18.877,10.788 C 18.858,9.96 18.837,9.138 18.739,8.314 C 18.678,8.314 18.618,8.314 18.555,8.314 C 18.538,8.426 18.521,8.538 18.504,8.653 C 18.133,10.262 16.849,11.349 15.68,12.413 C 14.855,13.168 14.222,13.835 14.115,14.994 C 14.099,15.675 14.158,16.228 14.422,16.856 C 14.109,16.759 13.87,16.672 13.595,16.489 C 13.563,16.603 13.531,16.716 13.498,16.833 C 13.279,17.493 12.925,18.134 12.467,18.657 C 12.309,18.877 12.309,18.877 12.315,19.07 C 12.413,19.269 12.522,19.396 12.677,19.554 C 12.985,19.893 13.235,20.25 13.481,20.634 C 13.515,20.688 13.55,20.741 13.585,20.797 C 14.146,21.686 14.146,21.686 14.146,22 C 13.75,21.874 13.374,21.722 12.993,21.558 C 11.378,20.9 9.722,20.714 7.992,20.622 C 8.028,20.575 8.064,20.528 8.101,20.479 C 8.37,20.121 8.637,19.761 8.894,19.394 C 8.947,19.317 9.001,19.241 9.056,19.162 C 9.187,18.969 9.187,18.969 9.278,18.785 C 9.245,18.78 9.245,18.78 9.077,18.756 C 8.797,18.688 8.6,18.576 8.36,18.418 C 8.36,18.478 8.36,18.539 8.36,18.602 C 7.479,18.463 6.695,17.922 6.155,17.224 C 5.981,16.926 5.832,16.623 5.696,16.305 C 5.74,16.453 5.784,16.6 5.828,16.747 C 5.853,16.829 5.877,16.911 5.903,16.996 C 5.954,17.164 6.008,17.332 6.064,17.499 C 5.299,17.281 4.772,16.857 4.318,16.213 C 3.714,15.033 3.82,13.901 4.043,12.631 C 3.577,13.432 3.387,14.102 3.308,15.019 C 2.824,14.591 2.572,13.903 2.481,13.274 C 2.397,11.547 3.913,10.126 4.944,8.882 C 5.479,8.227 5.879,7.592 6.224,6.822 C 6.567,6.064 6.997,5.455 7.533,4.824 C 7.593,4.75 7.652,4.675 7.713,4.599 C 10.235,1.556 15.063,1.158 18.163,3.549 Z"
+let cindyMarkPath = cindySilhouettePath + " M 11.024,12.539 L 13.412,14.009 L 13.412,14.56 L 11.024,16.03 L 11.024,15.203 L 12.585,14.284 L 11.024,13.366 L 11.024,12.539 Z"
diff --git a/docs/design-rules/DESIGN.md b/docs/design-rules/DESIGN.md
index 0f922c5101..3e0c512db3 100644
--- a/docs/design-rules/DESIGN.md
+++ b/docs/design-rules/DESIGN.md
@@ -575,9 +575,12 @@ The usage heatmap, daily-token bars and their separate interaction indicators fo
### macOS menu bar quota panel (owner-approved v6 prototype, 2026-10-11)
+Icon refinement reference (2026-10-18, macOS AppKit rendering; enlarged and actual 18pt size):
+[Light/Dark before and after](assets/menubar-icon-refinement.png).
+
- A native status item (`NSStatusItem`) and panel rendered by the Swift helper in `apps/desktop/native/menubar/`, not an HTML window. Main builds every sentence and value; the helper renders, animates and formats only times that tick while the panel is open. Available on macOS 14+ and toggled in Settings → Window behavior (default on).
- The panel uses the system popover material (`NSVisualEffectView`, `.popover`) with a 0.5pt hairline edge, so it follows the desktop wallpaper and Light/Dark automatically. Over the material it lays a warm tint (Light `#F8F7F3` at 50%, Dark `#1A1918` at 54%; owner corrections, 2026-10-16: 72%/74% was noticeably more solid than the plain material, 22%/26% let busy wallpapers wash out gray text and made the tiles read as pasted-on boxes) and a faint Heart Orange glow in the top-left corner, so the panel reads in Cindy's warm neutrals instead of the cool system gray (owner-approved B2 direction, 2026-10-16). Because the panel is translucent, every neutral — text, outlines, hairlines, tiles, the glass wells, the liquid and neutral ring arcs — is Cindy's warm black `#26221C` (Light) or warm white `#F2EFE9` (Dark) at an opacity, never a fixed gray, so its contrast tracks whatever shows through instead of drifting (owner decision, 2026-10-16): primary text 92% / 94%, secondary 60% / 62%, tertiary 42% / 42%, outlines 14% / 13%, hairlines 8% / 7%, faint fills and ring tracks 5% / 5%; tiles are white 45% / warm white 5%; wells white 70%→50% / warm white 7%→2.5%. Solid colors are reserved for state (warning, error), brand (logo red), Agent/harness identity (including the Codex blue and Claude orange detail rings, kept by owner decision 2026-10-16) and the primary pill fill (`#1F1E1C` / `#F2EFE9`), which must read at full contrast. Native SwiftUI controls (segmented `Picker`, `Toggle`, Swift Charts) are used as-is; their system geometry is not restyled to Web tokens. A segmented control is used only where its labels fit in every language (see below).
-- The menu bar icon and every provider/harness logo are template images (monochrome, tinted by the system). Brand red (logo red `#F70121`) appears only in the Cindy wordmark, a fixed Light/Dark image pair, and in the logo's `>` mark that leads the footer "Open Cindy" pill (owner request, 2026-10-16); it is never used for state.
+- The menu bar icon uses a fixed Light/Dark image pair with template tinting disabled (owner-approved hair and earring refinement, 2026-10-18). Its silhouette stays flat and 100% opaque: pure black in Light, pure white in Dark. Four irregular, tapered hair strands add gray detail over that silhouette (`#BDBDBD` in Light / `#686868` in Dark, at 58%, 48%, 36% and 52%); these are tonal overlays, not transparent cutouts or whole-character shading. The `>` earring cutout is larger and shifted slightly left. The native status button's effective appearance selects the image, since the wallpaper can make the menu bar differ from the app; the settings preview uses the same pair. These fixed grays belong only to this native brand asset. Provider/harness logos remain template images (monochrome, tinted by the system). Brand red (logo red `#F70121`) appears only in the Cindy wordmark, a fixed Light/Dark image pair, and in the logo's `>` mark that leads the footer "Open Cindy" pill (owner request, 2026-10-16); it is never used for state.
- Status colors are fixed native values shared by both appearances: warning `#EA6B17` (15% or less left, or a pace that runs out before reset) and error `#D91F37` (used up). Agent/harness fills reuse the identity colors of the §2 Usage History registration: `--engine-badge-cc` `#D97757` (with two lighter steps for Claude's session/per-model rings), `--engine-badge-codex` `#7A9DFF` and `--usage-model-1` teal for Pi; neutral ink fills carry no state.
- Usage tubes are glass wells holding a translucent liquid instead of solid paint (owner correction, 2026-10-16: the opaque gray read as dirty): one flat tone with no gradient — warm black `#26221C` at 46% (Light) or warm white `#F2EFE9` at 72% (Dark) — so the well shows through and each appearance stays clean; deliberately lower contrast than the text so seven full tubes do not read as hard black or white bars. Neutral ring arcs (Grok, a balance) use the same warm black 42% / warm white 80%; the warning liquid is flat `#EA6B17` with a still glow under the tube. The recommended tube gets a 1pt secondary-gray outline (owner decision, 2026-10-16: the earlier 1.5pt ink outline read as a selection or an error once the liquid was softened) and nothing else — no halo and no logo tile before the headline (owner decision, 2026-10-16: the headline already names the source). The warning glow does not animate. A 7pt warning dot precedes the second headline line when that line is about sources running low or resetting (main sends `headlineAlert`).
- Numbers use Barlow Condensed (OFL, shipped next to the helper): tube values and their % sign (the sign at about 60% of the value, same baseline), reset times, task amounts and shares, the task total, the month total, the detail ring value, and the usage page total and harness amounts. The detail page's fact-card values ("62,500", "周四 14:13") stay in the system font (owner correction, 2026-10-16): they are content, often mixing words, not metrics. Only pure numbers take Barlow (digits, money and % signs, and unit letters straight after a digit: "53", "$31.17", "12.5k", "98%"); any string that mixes in Chinese or words ("15天12时后重置", "周四 14:13", "5d 11h") stays entirely in the system font, because a condensed face beside Chinese reads uneven (owner correction, 2026-10-16). Two-line rows align the amount to the title's baseline and the share to the meta line's. If the font files are missing the helper falls back to a smaller system font.
diff --git a/docs/design-rules/assets/menubar-icon-refinement.png b/docs/design-rules/assets/menubar-icon-refinement.png
new file mode 100644
index 0000000000..98a3677d88
Binary files /dev/null and b/docs/design-rules/assets/menubar-icon-refinement.png differ