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