-
Notifications
You must be signed in to change notification settings - Fork 26
Use Single scale on vectorized icon + Defaults binding #199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
This PR standardizes SVG icon handling across the application by adding vector preservation properties and simplifying scale factors, while also improving defaults binding in the settings UI.
- Added
preserves-vector-representation: true
to all SVG icon assets in/macos/Onit/Assets.xcassets/Icons/
to maintain vector quality across resolutions - Removed redundant scale factors (1x, 2x, 3x) from SVG assets since they are inherently scalable
- Simplified toggle bindings in
/macos/Onit/UI/Settings/AccessibilityTab.swift
by using SwiftUI's $-prefix syntax for @default properties - Removed unused icon assets like
circle-arrow-up-20.imageset
andcircle-arrow-up-dotted-no-padding.imageset
53 file(s) reviewed, 3 comment(s)
Edit PR Review Bot Settings | Greptile
"properties" : { | ||
"preserves-vector-representation" : true | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: Consider adding this 'preserves-vector-representation' property to all other SVG icon assets in the PR for consistency
@@ -2,20 +2,14 @@ | |||
"images" : [ | |||
{ | |||
"filename" : "Vector (59).svg", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: Consider renaming 'Vector (59).svg' to 'text-quotations.svg' for consistency with other icon filenames
"filename" : "Vector (59).svg", | |
"filename" : "text-quotations.svg", |
@@ -2,20 +2,14 @@ | |||
"images" : [ | |||
{ | |||
"filename" : "triangle-exclamation, error, warning, alert (1).svg", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: Consider renaming the file to something more concise like 'warning.svg' instead of 'triangle-exclamation, error, warning, alert (1).svg' for better maintainability
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.