-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
82 additions
and
11 deletions.
There are no files selected for viewing
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
32 changes: 32 additions & 0 deletions
32
Mlem/App/Views/Root/Tabs/Settings/ModeratorActionSeparationSettingsView.swift
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,32 @@ | ||
// | ||
// ModeratorActionSeparationSettingsView.swift | ||
// Mlem | ||
// | ||
// Created by Sjmarf on 2025-02-01. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct ModeratorActionSeparationSettingsView: View { | ||
@Setting(\.moderatorActionGrouping) var moderatorActionGrouping | ||
|
||
var body: some View { | ||
Form { | ||
SettingsHeaderView( | ||
title: "Moderator Actions", | ||
description: "Customize how moderator actions are separated from regular actions in context menus." | ||
) {} | ||
Section { | ||
Picker("Separate Actions Using", systemImage: Icons.menuItems, selection: $moderatorActionGrouping) { | ||
ForEach(ModeratorActionGrouping.allCases, id: \.self) { item in | ||
Label(String(localized: item.label), systemImage: item.systemImage) | ||
} | ||
} | ||
.pickerStyle(.inline) | ||
.labelsHidden() | ||
} | ||
} | ||
.labelStyle(.conditional) | ||
.contentMargins(.top, 16) | ||
} | ||
} |
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
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