mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-29 01:42:03 +00:00
Aristo3: Remove unused rule editor icons for selected rows
Two white add and remove icons intended for selected rows in key windows were defined, but their mappings were commented out in the original commit. Consequently, the icons were never referenced and generated two unread-variable warnings on every build. Both icons and their commented-out mappings are removed, and the comments on the remaining dark icons are updated to reflect that they apply to all rows regardless of selection state.
This commit is contained in:
1 parent
8a88f98f67
commit
97a7ef1ae9
1 file changed
+2
-32
@@ -8297,7 +8297,7 @@ function A3MaskIcon(aMaskImage, aColor)
|
||||
hudFontColor = [CPColor whiteColor],
|
||||
|
||||
// --- Standard Images (Dark) ---
|
||||
// Used for: Normal rows AND Inactive Selection (Gray background)
|
||||
// Used for: every row, selected or not
|
||||
buttonAddImage = [CPImage imageWithCSSDictionary:@{
|
||||
"-webkit-mask-image": svgPlus,
|
||||
"mask-image": svgPlus,
|
||||
@@ -8322,32 +8322,6 @@ function A3MaskIcon(aMaskImage, aColor)
|
||||
"mask-position": "center"
|
||||
} size:CGSizeMake(12, 12)],
|
||||
|
||||
// --- Selected Images (White) ---
|
||||
// Used for: Active Selection (Blue background)
|
||||
buttonAddImageSelected = [CPImage imageWithCSSDictionary:@{
|
||||
"-webkit-mask-image": svgPlus,
|
||||
"mask-image": svgPlus,
|
||||
"background-color": @"#FFFFFF", // Force White
|
||||
"-webkit-mask-size": "contain",
|
||||
"mask-size": "contain",
|
||||
"-webkit-mask-repeat": "no-repeat",
|
||||
"mask-repeat": "no-repeat",
|
||||
"-webkit-mask-position": "center",
|
||||
"mask-position": "center"
|
||||
} size:CGSizeMake(12, 12)],
|
||||
|
||||
buttonRemoveImageSelected = [CPImage imageWithCSSDictionary:@{
|
||||
"-webkit-mask-image": svgMinus,
|
||||
"mask-image": svgMinus,
|
||||
"background-color": @"#FFFFFF", // Force White
|
||||
"-webkit-mask-size": "contain",
|
||||
"mask-size": "contain",
|
||||
"-webkit-mask-repeat": "no-repeat",
|
||||
"mask-repeat": "no-repeat",
|
||||
"-webkit-mask-position": "center",
|
||||
"mask-position": "center"
|
||||
} size:CGSizeMake(12, 12)],
|
||||
|
||||
// --- HUD Images (Always White) ---
|
||||
buttonAddImageHUD = [CPImage imageWithCSSDictionary:@{
|
||||
"-webkit-mask-image": svgPlus,
|
||||
@@ -8403,14 +8377,10 @@ function A3MaskIcon(aMaskImage, aColor)
|
||||
[@"add-image", buttonAddImage, CPThemeStateNormal],
|
||||
[@"remove-image", buttonRemoveImage, CPThemeStateNormal],
|
||||
|
||||
// 2. Selected (Inactive/Gray) -> Dark (to contrast with light gray)
|
||||
// 2. Selected -> Dark
|
||||
[@"add-image", buttonAddImage, CPThemeStateSelected],
|
||||
[@"remove-image", buttonRemoveImage, CPThemeStateSelected],
|
||||
|
||||
// 3. Selected (Active/Blue) -> White (Highest Specificity)
|
||||
// [@"add-image", buttonAddImageSelected, [CPThemeStateSelected, CPThemeStateKeyWindow]],
|
||||
// [@"remove-image", buttonRemoveImageSelected, [CPThemeStateSelected, CPThemeStateKeyWindow]],
|
||||
|
||||
// --- HUD Mappings ---
|
||||
[@"alternating-row-colors", hudBackgroundColors, CPThemeStateHUD],
|
||||
[@"selected-color", hudSelectedRowColor, [CPThemeStateHUD, CPThemeStateNormal]],
|
||||
|
||||
Reference in new issue
Block a user