-
Notifications
You must be signed in to change notification settings - Fork 492
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12564 from wieslawsoltes/vdg/12351-merge-wallet-s…
…ettings [UI] Merge Wallet & Coinjoin settings
- Loading branch information
Showing
24 changed files
with
267 additions
and
170 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
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,18 @@ | ||
<Styles xmlns="https://github.com/avaloniaui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | ||
|
||
<Style Selector="TabControl.Settings"> | ||
<Setter Property="Padding" Value="0" /> | ||
</Style> | ||
|
||
<Style Selector="TabControl.Settings TabItem"> | ||
<Setter Property="FontSize" Value="12" /> | ||
<Setter Property="MinHeight" Value="50" /> | ||
<Setter Property="Padding" Value="0" /> | ||
</Style> | ||
|
||
<Style Selector="TabControl.Settings TabItem /template/ Border#PART_LayoutRoot"> | ||
<Setter Property="Margin" Value="0 0 24 24" /> | ||
</Style> | ||
|
||
</Styles> |
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
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
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
37 changes: 0 additions & 37 deletions
37
WalletWasabi.Fluent/Views/Wallets/CoinJoinSettingsView.axaml
This file was deleted.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
WalletWasabi.Fluent/Views/Wallets/Settings/WalletCoinJoinSettingsView.axaml
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,34 @@ | ||
<UserControl xmlns="https://github.com/avaloniaui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" | ||
xmlns:vm="clr-namespace:WalletWasabi.Fluent.ViewModels.Wallets.Settings" | ||
x:DataType="vm:WalletCoinJoinSettingsViewModel" | ||
x:Class="WalletWasabi.Fluent.Views.Wallets.Settings.WalletCoinJoinSettingsView" | ||
x:CompileBindings="True"> | ||
|
||
<StackPanel Spacing="20"> | ||
|
||
<StackPanel Classes="settingsLayout"> | ||
|
||
<DockPanel> | ||
<TextBlock Text="Automatically start coinjoin" /> | ||
<ToggleSwitch IsChecked="{Binding AutoCoinJoin, Mode=OneWay}" Command="{Binding SetAutoCoinJoin}" /> | ||
</DockPanel> | ||
|
||
<StackPanel Spacing="10" | ||
ToolTip.Tip="Coinjoin will not automatically start if the wallet balance is less than this."> | ||
<TextBlock Text="Auto-start coinjoin threshold" /> | ||
<CurrencyEntryBox Text="{Binding PlebStopThreshold}" CurrencyCode="BTC" /> | ||
</StackPanel> | ||
|
||
<DockPanel> | ||
<TextBlock Text="Coinjoin strategy:" VerticalAlignment="Center" DockPanel.Dock="Left" Margin="0" /> | ||
<Button Content="Change" Command="{Binding SelectCoinjoinProfileCommand}" DockPanel.Dock="Right" /> | ||
<TextBlock Text="{Binding SelectedCoinjoinProfileName}" VerticalAlignment="Center" MinWidth="120" Margin="10 0 10 0" /> | ||
</DockPanel> | ||
</StackPanel> | ||
</StackPanel> | ||
|
||
</UserControl> |
17 changes: 17 additions & 0 deletions
17
WalletWasabi.Fluent/Views/Wallets/Settings/WalletCoinJoinSettingsView.axaml.cs
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,17 @@ | ||
using Avalonia.Controls; | ||
using Avalonia.Markup.Xaml; | ||
|
||
namespace WalletWasabi.Fluent.Views.Wallets.Settings; | ||
|
||
public class WalletCoinJoinSettingsView : UserControl | ||
{ | ||
public WalletCoinJoinSettingsView() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
private void InitializeComponent() | ||
{ | ||
AvaloniaXamlLoader.Load(this); | ||
} | ||
} |
Oops, something went wrong.