Skip to content
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

Move to macOS Ventura-style Settings in place of Preferences #1215

Merged
merged 54 commits into from
Apr 26, 2023

Conversation

austincondiff
Copy link
Collaborator

@austincondiff austincondiff commented Mar 31, 2023

Description

The current Preferences implementation of preferences now will use the new grouped form style introduced in the latest version of SwiftUI and will also adopt a sidebar for to accommodate a larger set of Settings Pages. It also resembles System Settings in macOS Ventura. We are now calling it Settings instead of Preferences to follow the newer macOS naming convention.

Please note: This is a large PR. I'd encourage reviewers to pull it down and play with it in addition to a thorough review of the code.

Related Issues

Checklist

  • General
  • Accounts
  • Behaviors (not yet implemented)
  • Navigation (not yet implemented)
  • Themes
  • TextEditing
  • Terminal
  • Key Bindings (not yet implemented)
  • Source Control
  • Components (not yet implemented)
  • Locations
  • Advanced (not yet implemented)
  • I read and understood the contributing guide as well as the code of conduct
  • The issues this PR addresses are related to each other
  • My changes generate no new warnings
  • My code builds and runs on my machine
  • My changes are all related to the related issue above
  • I documented my code

Screenshots

image

image

image

image

image

image

image

image

image

image

image

image

* add initial ventura-style preferences ui

* fix lint errors

* refactor Settings -> Preferences

* add comments and rename GeneralSettings -> Preferences

* make font size 12 and images 20x20

* minor rephrase

* add venturacolors.swift

* fix colors

* fix text-misaligment

* remove VStack, fixing an issue

* preferences initial refactor

* continue preference refactor

* refactor SourceControlGeneralView.swift and start refactor on SourceControlGitView

* refactor SourceControlGitView and fix lint errors

* fix issue

* fix code inconstencies

* fix warnings

* edit docs

* fix docs problem

* remove public

* Partially fix search issue

* fix luah5#3

* add explicit values, fix luah5#1 and intiate fix to issue where text if cut-off

* small changes

* add default selection
austincondiff and others added 23 commits April 1, 2023 00:56
Signed-off-by: Wouter01 <wouterhennen@gmail.com>
…strain their height to be within the parent window.
Signed-off-by: Wouter01 <wouterhennen@gmail.com>
@luah5 luah5 mentioned this pull request Apr 7, 2023
7 tasks
@austincondiff austincondiff requested a review from a team April 13, 2023 15:44
Wouter01 and others added 2 commits April 13, 2023 18:21
Signed-off-by: Wouter01 <wouterhennen@gmail.com>
Copy link
Collaborator

@thecoolwinter thecoolwinter left a comment

Choose a reason for hiding this comment

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

Left a couple comments for changes to make and an indentation. Otherwise great job, this is a large transition and I couldn't find any regressions in any preferences.

One thing that I would suggest that might be out of scope is adding tooltips for settings so users can hover over them and get a longer description of what they do. I noticed there isn't any of those in this PR. SwiftUI makes it quite easy to do with the help modifier.

…ar. Added new ExternalLink view that we are using in Locations settings.
…a toggle to use text editor font in terminal settings. Using the grouped form stepper throughout.
…st of the UI is not delayed while retrieving fonts.
@austincondiff
Copy link
Collaborator Author

Quick update... I've added a new monospaced font picker as seen here...

Screen.Recording.2023-04-24.at.1.12.30.PM.mp4

@MrDevel0per MrDevel0per mentioned this pull request Apr 24, 2023
@austincondiff austincondiff dismissed thecoolwinter’s stale review April 25, 2023 22:16

Changes have been made since, need re-review

@austincondiff
Copy link
Collaborator Author

austincondiff commented Apr 25, 2023

One thing that I would suggest that might be out of scope is adding tooltips for settings so users can hover over them and get a longer description of what they do. I noticed there isn't any of those in this PR. SwiftUI makes it quite easy to do with the help modifier.

@thecoolwinter I can't think of anything right away that needs a help tooltip. Let's push this to another scope of work. If you think of anything submit a Settings help tooltips issue and we can add them.

Copy link
Contributor

@matthijseikelenboom matthijseikelenboom left a comment

Choose a reason for hiding this comment

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

LGTM. We do need to have some code style improvements, but that is a project wide thing to fix and unrelated to this PR.

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.

✨ Refactor Preferences to use new Ventura-style Settings style
7 participants