|
|
|
@ -33,32 +33,32 @@ Window "DiscordChatExporter.Views.MainWindow" {
|
|
|
|
|
#TwoColumns("*", "Auto")
|
|
|
|
|
|
|
|
|
|
Card {
|
|
|
|
|
Grid.Column: 0
|
|
|
|
|
Margin: "6 6 0 6"
|
|
|
|
|
#Cell(0, 0)
|
|
|
|
|
Margin: [6, 6, 0, 6]
|
|
|
|
|
|
|
|
|
|
Grid {
|
|
|
|
|
#TwoColumns("*", "Auto")
|
|
|
|
|
|
|
|
|
|
// Token
|
|
|
|
|
TextBox "TokenTextBox" {
|
|
|
|
|
Grid.Column: 0
|
|
|
|
|
#Cell(0, 0)
|
|
|
|
|
Margin: 6
|
|
|
|
|
BorderThickness: 0
|
|
|
|
|
HintAssist.Hint: "Token"
|
|
|
|
|
KeyDown: TokenTextBox_KeyDown
|
|
|
|
|
FontSize: 16
|
|
|
|
|
Text: bind Token
|
|
|
|
|
set [ UpdateSourceTrigger: PropertyChanged ]
|
|
|
|
|
TextFieldAssist.DecorationVisibility: Hidden
|
|
|
|
|
TextFieldAssist.TextBoxViewMargin: "0 0 2 0"
|
|
|
|
|
TextFieldAssist.TextBoxViewMargin: [0, 0, 2, 0]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Submit
|
|
|
|
|
Button {
|
|
|
|
|
Grid.Column: 1
|
|
|
|
|
Margin: "0 6 6 6"
|
|
|
|
|
#Cell(0, 1)
|
|
|
|
|
Margin: [0, 6, 6, 6]
|
|
|
|
|
Padding: 4
|
|
|
|
|
Command: bind PullDataCommand
|
|
|
|
|
IsDefault: true
|
|
|
|
|
Style: resource dyn "MaterialDesignFlatButton"
|
|
|
|
|
|
|
|
|
|
PackIcon {
|
|
|
|
@ -72,7 +72,7 @@ Window "DiscordChatExporter.Views.MainWindow" {
|
|
|
|
|
|
|
|
|
|
// Popup menu
|
|
|
|
|
PopupBox {
|
|
|
|
|
Grid.Column: 1
|
|
|
|
|
#Cell(0, 1)
|
|
|
|
|
Foreground: resource dyn "PrimaryHueMidForegroundBrush"
|
|
|
|
|
PlacementMode: LeftAndAlignTopEdges
|
|
|
|
|
|
|
|
|
@ -122,7 +122,7 @@ Window "DiscordChatExporter.Views.MainWindow" {
|
|
|
|
|
TransitioningContent {
|
|
|
|
|
OpeningEffect: TransitionEffect {
|
|
|
|
|
Duration: "0:0:0.3"
|
|
|
|
|
Kind: SlideInFromRight
|
|
|
|
|
Kind: SlideInFromLeft
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Border {
|
|
|
|
@ -131,9 +131,11 @@ Window "DiscordChatExporter.Views.MainWindow" {
|
|
|
|
|
Cursor: CursorType.Hand
|
|
|
|
|
|
|
|
|
|
Image {
|
|
|
|
|
Margin: "12 4 12 4"
|
|
|
|
|
Margin: [12, 4, 12, 4]
|
|
|
|
|
Width: 48
|
|
|
|
|
Height: 48
|
|
|
|
|
Source: bind IconUrl
|
|
|
|
|
ToolTip: bind Name
|
|
|
|
|
OpacityMask: RadialGradientBrush {
|
|
|
|
|
GradientStops: [
|
|
|
|
|
GradientStop { Color: "#FF000000", Offset: 0 }
|
|
|
|
@ -141,8 +143,6 @@ Window "DiscordChatExporter.Views.MainWindow" {
|
|
|
|
|
GradientStop { Color: "#00000000", Offset: 1 }
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
Source: bind IconUrl
|
|
|
|
|
ToolTip: bind Name
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -177,12 +177,12 @@ Window "DiscordChatExporter.Views.MainWindow" {
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
PackIcon {
|
|
|
|
|
Margin: "16 7 0 6"
|
|
|
|
|
Margin: [16, 7, 0, 6]
|
|
|
|
|
Kind: PackIconKind.Pound
|
|
|
|
|
VerticalAlignment: Center
|
|
|
|
|
}
|
|
|
|
|
TextBlock {
|
|
|
|
|
Margin: "3 8 8 8"
|
|
|
|
|
Margin: [3, 8, 8, 8]
|
|
|
|
|
FontSize: 14
|
|
|
|
|
Text: bind Name
|
|
|
|
|
VerticalAlignment: Center
|
|
|
|
@ -196,7 +196,7 @@ Window "DiscordChatExporter.Views.MainWindow" {
|
|
|
|
|
|
|
|
|
|
// Content placeholder
|
|
|
|
|
StackPanel {
|
|
|
|
|
Margin: "32 32 8 8"
|
|
|
|
|
Margin: [32, 32, 8, 8]
|
|
|
|
|
Visibility: bind IsDataAvailable
|
|
|
|
|
convert (bool b) => b ? Visibility.Hidden : Visibility.Visible
|
|
|
|
|
|
|
|
|
@ -206,13 +206,13 @@ Window "DiscordChatExporter.Views.MainWindow" {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TextBlock {
|
|
|
|
|
Margin: "0 8 0 0"
|
|
|
|
|
Margin: [0, 8, 0, 0]
|
|
|
|
|
FontSize: 16
|
|
|
|
|
Text: "To obtain it, follow these steps:"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TextBlock {
|
|
|
|
|
Margin: "8 0 0 0"
|
|
|
|
|
Margin: [8, 0, 0, 0]
|
|
|
|
|
FontSize: 14
|
|
|
|
|
|
|
|
|
|
Run {
|
|
|
|
|