optimized font settings in bookmark details
This commit is contained in:
parent
40d340daa3
commit
2c5b51ca3a
@ -53,4 +53,3 @@ The app includes a Share Extension that allows adding bookmarks directly from Sa
|
||||
3. Commit your changes (`git commit -m 'Add amazing feature'`)
|
||||
4. Push to the branch (`git push origin feature/amazing-feature`)
|
||||
5. Open a Pull Request
|
||||
|
||||
|
||||
@ -38,16 +38,31 @@ struct BookmarkDetailView: View {
|
||||
}
|
||||
.sheet(isPresented: $showingFontSettings) {
|
||||
NavigationView {
|
||||
FontSettingsView()
|
||||
.navigationTitle("Schrift-Einstellungen")
|
||||
.navigationBarTitleDisplayMode(.inline)
|
||||
.toolbar {
|
||||
ToolbarItem(placement: .navigationBarTrailing) {
|
||||
Button("Fertig") {
|
||||
showingFontSettings = false
|
||||
}
|
||||
VStack {
|
||||
FontSettingsView()
|
||||
.frame(maxWidth: .infinity)
|
||||
.padding(.horizontal, 16)
|
||||
.padding(.top, 8)
|
||||
|
||||
Spacer()
|
||||
}
|
||||
.navigationTitle("Schrift-Einstellungen")
|
||||
.navigationBarTitleDisplayMode(.inline)
|
||||
.toolbar {
|
||||
ToolbarItem(placement: .navigationBarTrailing) {
|
||||
Button("Fertig") {
|
||||
showingFontSettings = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.onChange(of: showingFontSettings) { _, isShowing in
|
||||
if !isShowing {
|
||||
// Reload settings when sheet is dismissed
|
||||
Task {
|
||||
await viewModel.loadBookmarkDetail(id: bookmarkId)
|
||||
}
|
||||
}
|
||||
}
|
||||
.task {
|
||||
|
||||
@ -97,7 +97,7 @@ struct BookmarksView: View {
|
||||
}
|
||||
|
||||
// FAB Button - nur bei "Ungelesen" anzeigen
|
||||
if state == .unread {
|
||||
if state == .unread || state == .all {
|
||||
VStack {
|
||||
Spacer()
|
||||
HStack {
|
||||
|
||||
@ -11,7 +11,7 @@ struct FontSettingsView: View {
|
||||
@State private var viewModel = FontSettingsViewModel()
|
||||
|
||||
var body: some View {
|
||||
VStack(alignment: .leading, spacing: 0) {
|
||||
VStack(alignment: .leading, spacing: 24) {
|
||||
// Header
|
||||
HStack(spacing: 8) {
|
||||
Image(systemName: "textformat")
|
||||
@ -23,8 +23,6 @@ struct FontSettingsView: View {
|
||||
.fontWeight(.bold)
|
||||
}
|
||||
|
||||
Spacer()
|
||||
|
||||
// Font Family Picker
|
||||
HStack(alignment: .firstTextBaseline, spacing: 16) {
|
||||
Text("Schriftart")
|
||||
@ -42,8 +40,6 @@ struct FontSettingsView: View {
|
||||
}
|
||||
}
|
||||
|
||||
Spacer()
|
||||
|
||||
VStack(spacing: 16) {
|
||||
|
||||
// Font Size Picker
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user