mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-10 20:02:31 +00:00
52 lines
1.1 KiB
Plaintext
52 lines
1.1 KiB
Plaintext
using MaterialDesignThemes.Wpf
|
|
|
|
UserControl "DiscordChatExporter.Gui.Views.SettingsDialog" {
|
|
DataContext: bind SettingsViewModel from $resource Container
|
|
Width: 250
|
|
|
|
StackPanel {
|
|
// Date format
|
|
TextBox {
|
|
Margin: [16, 16, 16, 8]
|
|
HintAssist.Hint: "Date format"
|
|
HintAssist.IsFloating: true
|
|
Text: bind DateFormat
|
|
}
|
|
|
|
// Group limit
|
|
TextBox {
|
|
Margin: [16, 8, 16, 8]
|
|
HintAssist.Hint: "Message group limit"
|
|
HintAssist.IsFloating: true
|
|
Text: bind MessageGroupLimit
|
|
}
|
|
|
|
// Auto-update
|
|
DockPanel {
|
|
LastChildFill: false
|
|
|
|
TextBlock {
|
|
Margin: [16, 8, 16, 8]
|
|
DockPanel.Dock: Left
|
|
Text: "Auto-updates"
|
|
}
|
|
|
|
ToggleButton {
|
|
Margin: [16, 8, 16, 8]
|
|
DockPanel.Dock: Right
|
|
IsChecked: bind IsAutoUpdateEnabled
|
|
}
|
|
}
|
|
|
|
// Save
|
|
Button {
|
|
Margin: 8
|
|
Command: DialogHost.CloseDialogCommand
|
|
Content: "SAVE"
|
|
HorizontalAlignment: Right
|
|
IsDefault: true
|
|
IsCancel: true
|
|
Style: resource dyn "MaterialDesignFlatButton"
|
|
}
|
|
}
|
|
} |