8000 Use Single scale on vectorized icon + Defaults binding by Niduank · Pull Request #199 · synth-inc/onit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 2 commits into from
May 14, 2025

Conversation

Niduank
Copy link
Collaborator
@Niduank Niduank commented May 8, 2025

No description provided.

Copy link
Contributor
@greptile-apps greptile-apps bot left a 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 and circle-arrow-up-dotted-no-padding.imageset

53 file(s) reviewed, 3 comment(s)
Edit PR Review Bot Settings | Greptile

Comment on lines +12 to 14
"properties" : {
"preserves-vector-representation" : true
}
Copy link
Contributor

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",
Copy link
Contributor

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

Suggested change
"filename" : "Vector (59).svg",
"filename" : "text-quotations.svg",

@@ -2,20 +2,14 @@
"images" : [
{
"filename" : "triangle-exclamation, error, warning, alert (1).svg",
Copy link
Contributor

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

Copy link
Contributor
@timlenardo timlenardo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@timlenardo timlenardo merged commit 6b2cf6d into main May 14, 2025
@timlenardo timlenardo deleted the refacto/assets-and-defaults-binding branch May 14, 2025 03:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0