Remove unused tooltip theme attributes

Remove `background-color`, `stroke-color`, `stroke-width`, and
`border-radius` from `_CPToolTipWindowView`, the Aristo, Aristo2, and
Aristo3 tooltip descriptors, and the drop-in baseline.

Tooltips draw solely from `bezel-color`, and nothing has read these attributes since
the CSS rework emptied `drawRect:`.
This commit is contained in:
David Richardson committed 2026-11-27 14:25:21 -06:00
1 parent b1c762aaf9
commit 9d3b36972f
5 files changed
+9 -28

No files matched your search

+8 -9
View File
@@ -38,11 +38,16 @@
return @"tooltip";
}
/*
2026-11-27: the tool tip declared background-color, stroke-color, stroke-width and
border-radius, set to clear and zero, although nothing read them. Cause: when the tool tip
moved to CSS, drawRect: was emptied and the attributes were kept only so that the themes
that set them still built. They are removed here and from the themes. The tool tip draws
from bezel-color, a CSS dictionary that the window view applies to its outer bounds.
*/
+ (CPDictionary)themeAttributes
{
return @{
// 1. The DOM-based CSS rendering attributes.
// _CPWindowView will natively apply this to the outer window bounds.
@"bezel-color":[CPColor colorWithCSSDictionary:@{
@"background-color": @"#FFFFCA",
@"border": @"1px solid #B0B0B0",
@@ -50,13 +55,7 @@
@"box-sizing": @"border-box",
@"box-shadow": @"0px 1px 3px rgba(0,0,0,0.25)"
}],
@"color": [CPColor blackColor],
// 2. Legacy attributes zeroed out to satisfy the build process/theme inheritance
@"background-color": [CPColor clearColor],
@"stroke-color": [CPColor clearColor],
@"stroke-width": 0.0,
@"border-radius": 0.0
@"color": [CPColor blackColor]
};
}
-4
View File
@@ -2956,10 +2956,6 @@ function ButtonBarImageAction()
themeValues =
[
[@"stroke-color", [CPColor colorWithHexString:@"E3E3E3"]],
[@"stroke-width", 1.0],
[@"border-radius", 2.0],
[@"background-color", [CPColor colorWithHexString:@"FFFFCA"]],
[@"color", [CPColor blackColor]]
];
-4
View File
@@ -2419,10 +2419,6 @@ function ButtonBarImageAction()
themeValues =
[
[@"stroke-color", [CPColor colorWithHexString:@"B0B0B0"]],
[@"stroke-width", 1.0],
[@"border-radius", 2.0],
[@"background-color", [CPColor colorWithHexString:@"FFFFCA"]],
[@"color", [CPColor blackColor]]
];
-6
View File
@@ -8418,12 +8418,6 @@ function A3MaskIconOfSize(aMaskImage, aColor, aSize)
}],
themeValues = [
// Legacy overrides zeroed out to prevent canvas interference
[@"stroke-color", [CPColor clearColor]],
[@"stroke-width", 0.0],
[@"border-radius", 0.0],
[@"background-color", [CPColor clearColor]],
// --- Standard Theme Mappings ---
[@"bezel-color", bezelColor],
[@"color", [CPColor blackColor]],
+1 -5
View File
@@ -759,11 +759,7 @@
"vertical-alignment": "2"
},
"_CPToolTipWindowView": {
"background-color": "CPColor:rgba(255, 255, 202, 1)",
"border-radius": "2",
"color": "CPColor:rgba(0, 0, 0, 1)",
"stroke-color": "CPColor:rgba(227, 227, 227, 1)",
"stroke-width": "1"
"color": "CPColor:rgba(0, 0, 0, 1)"
},
"_CPToolbarView": {
"content-inset": "{\"bottom\":4,\"left\":10,\"right\":4,\"top\":4}",