Skip to content

Commit

Permalink
chore: fix some settings placements
Browse files Browse the repository at this point in the history
  • Loading branch information
ejbills committed Dec 22, 2024
1 parent abfd6ad commit 586bf0e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 7 additions & 1 deletion DockDoor/Views/Settings/FiltersSettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import SwiftUI
struct FiltersSettingsView: View {
@Default(.appNameFilters) var appNameFilters
@Default(.windowTitleFilters) var windowTitleFilters
@Default(.ignoreAppsWithSingleWindow) var ignoreAppsWithSingleWindow

@State private var showingAddFilterSheet = false
@State private var newFilter = FilterEntry(text: "")

Expand Down Expand Up @@ -58,6 +60,10 @@ struct FiltersSettingsView: View {

var body: some View {
VStack(alignment: .leading, spacing: 16) {
Toggle(isOn: $ignoreAppsWithSingleWindow, label: {
Text("Ignore Apps with One Window")
})

// App Filters Section
VStack(alignment: .leading, spacing: 8) {
Text("Application filters")
Expand Down Expand Up @@ -166,7 +172,7 @@ struct FiltersSettingsView: View {
}
}
.padding(16)
.frame(minWidth: 500)
.frame(minWidth: 650)
.sheet(isPresented: $showingAddFilterSheet) {
AddFilterSheet(
isPresented: $showingAddFilterSheet,
Expand Down
5 changes: 0 additions & 5 deletions DockDoor/Views/Settings/MainSettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ struct MainSettingsView: View {
@Default(.windowPreviewImageScale) var windowPreviewImageScale
@Default(.fadeOutDuration) var fadeOutDuration
@Default(.sortWindowsByDate) var sortWindowsByDate
@Default(.ignoreAppsWithSingleWindow) var ignoreAppsWithSingleWindow
@Default(.lateralMovement) var lateralMovement
@Default(.preventDockHide) var preventDockHide

Expand Down Expand Up @@ -122,10 +121,6 @@ struct MainSettingsView: View {
Text("Sort Window Previews by Date")
})

Toggle(isOn: $ignoreAppsWithSingleWindow, label: {
Text("Ignore Apps with One Window")
})

Picker("Preview Hover Action", selection: $previewHoverAction) {
ForEach(PreviewHoverAction.allCases, id: \.self) { action in
Text(action.localizedName).tag(action)
Expand Down

0 comments on commit 586bf0e

Please sign in to comment.