-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move to macOS Ventura-style Settings in place of Preferences (#1215)
* Move to ventura-style preferences and refactor preferences (#1213) * 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 * Rearranged files. Window size adjustments. Worked on the settings view to get it closer to our target * Created a custom settings window to set the toolbar style * Added General Settings page. * Cleaned up code in GeneralSettingsView * add new settings panes * fix lint errors * fix problem with settings * Reverted Luah's changes from his PR * Reintroduced Luah's changes * Added Text Editing settings page. Started theme settings page * Improved tab width selection Signed-off-by: Wouter01 <wouterhennen@gmail.com> * Added themes settings page * Added constrainHeightToWindow modifier so sheets in Settings will constrain their height to be within the parent window. * Cleaned up code and reduced padding on theme color preview * Enabled saving of theme details form. * Fixed searcher gap. Fixed title alignment. Added back button when looking at details view. * Fixed search bar Signed-off-by: Wouter01 <wouterhennen@gmail.com> * Added sign in and details views for Accounts Settings * Added dark appearance for GitHub icon * Added custom Form so we can show custom titlebar background based on scroll position. * Cleaned up locations settings page * Fixed issues with settings toolbar background on scroll. Implemented tabs in source control settings page. * fixed scrollbar offset Signed-off-by: Wouter01 <wouterhennen@gmail.com> * Cleaned up SettingsForm * Fixed some issues with the accounts add and sign in sheets * When clicking cancel from account sign in, it will take the user back to account selection * Moved models from AppPreferences to Settings * More Settings file structure updates * Renamed models - AppPreferences to Settings, AppPreferencesModel to SettingsModel * Added AppSettings prop wrapper, Settings subscript Signed-off-by: Wouter01 <wouterhennen@gmail.com> * Merged Accounts and SourceControlAccounts. Removed SourceControlProvider in preference to SourceControlAccounts.Provider. Removed AppPreferences and defaulted to Settings. Renamed gitAccount to gitAccounts as it is an array of SourceControlAccount. Added zero-state for accounts settings. Renamed all setting-related models to use Settings instead of Preferences. * Moved settings references to use new usage pattern * Dirty trick for search bar Signed-off-by: Wouter01 <wouterhennen@gmail.com> * Cleaned up account selection and signing sheets. Disabled scroll. * Added transition to scrolled shadow in settings window * Setting theme by appearance when applicable * Code cleanup * Added fix for sidebar collapsing Signed-off-by: Wouter01 <wouterhennen@gmail.com> * fix swiftlint error * Added new icon buttonStyle for the upcoming settings table view toolbar. Added new ExternalLink view that we are using in Locations settings. * Removed SettingsTable from project.pbxproj * Improved font selection in text editing and terminal settings. Added a toggle to use text editor font in terminal settings. Using the grouped form stepper throughout. * Updated monospaced font picker to get fonts after rendering so the rest of the UI is not delayed while retrieving fonts. * Fixed lint error * Simplified theme setting page by removing terminal theme section. Fixed some of the theme settings options to work as expected. * Added subtle shadowing to settings sidebar icons. * Fixed tests, deleted FontPicker * Removed FontPickerView - not used anymore --------- Signed-off-by: Wouter01 <wouterhennen@gmail.com> Co-authored-by: luah5 <128280019+luah5@users.noreply.github.com> Co-authored-by: luah5 <raymondvleeshouwer@gmail.com> Co-authored-by: Wouter01 <wouterhennen@gmail.com> Co-authored-by: Lukas Pistrol <lukas@pistrol.com>
- Loading branch information
1 parent
d6a2f30
commit 9ed6467
Showing
133 changed files
with
3,616 additions
and
3,665 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+6.25 KB
CodeEdit/Assets.xcassets/Icons/BitBucketIcon.imageset/BitBucketIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions
12
CodeEdit/Assets.xcassets/Icons/BitBucketIcon.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "BitBucketIcon.png", | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
CodeEdit/Assets.xcassets/Icons/GitHubIcon.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "GitHubIcon.png", | ||
"idiom" : "universal" | ||
}, | ||
{ | ||
"appearances" : [ | ||
{ | ||
"appearance" : "luminosity", | ||
"value" : "dark" | ||
} | ||
], | ||
"filename" : "GitHubIcon-Dark.png", | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+4.52 KB
CodeEdit/Assets.xcassets/Icons/GitHubIcon.imageset/GitHubIcon-Dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions
22
CodeEdit/Assets.xcassets/Icons/GitLabIcon.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "GitLabIcon.png", | ||
"idiom" : "universal" | ||
}, | ||
{ | ||
"appearances" : [ | ||
{ | ||
"appearance" : "luminosity", | ||
"value" : "dark" | ||
} | ||
], | ||
"filename" : "GitLabIcon-Dark.png", | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+2.31 KB
CodeEdit/Assets.xcassets/Icons/GitLabIcon.imageset/GitLabIcon-Dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 0 additions & 31 deletions
31
CodeEdit/Features/AppPreferences/HelperViews/PreferencesColorPicker.swift
This file was deleted.
Oops, something went wrong.
76 changes: 0 additions & 76 deletions
76
CodeEdit/Features/AppPreferences/HelperViews/PreferencesSection.swift
This file was deleted.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
CodeEdit/Features/AppPreferences/HelperViews/PreferencesToolbar.swift
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.