-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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 #11 from cinnamon-msft/cinnamon/general-xaml
Add rendering and appearance - global pages
- Loading branch information
Showing
14 changed files
with
199 additions
and
7 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
18 changes: 18 additions & 0 deletions
18
src/TerminalSettings/TerminalSettings/GlobalAppearance.cpp
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 @@ | ||
#include "pch.h" | ||
#include "GlobalAppearance.h" | ||
#include "GlobalAppearance.g.cpp" | ||
|
||
using namespace winrt; | ||
using namespace Windows::UI::Xaml; | ||
|
||
namespace winrt::SettingsControl::implementation | ||
{ | ||
GlobalAppearance::GlobalAppearance() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
void GlobalAppearance::ClickHandler(IInspectable const&, RoutedEventArgs const&) | ||
{ | ||
} | ||
} |
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,20 @@ | ||
#pragma once | ||
|
||
#include "GlobalAppearance.g.h" | ||
|
||
namespace winrt::SettingsControl::implementation | ||
{ | ||
struct GlobalAppearance : GlobalAppearanceT<GlobalAppearance> | ||
{ | ||
GlobalAppearance(); | ||
|
||
void ClickHandler(Windows::Foundation::IInspectable const& sender, Windows::UI::Xaml::RoutedEventArgs const& args); | ||
}; | ||
} | ||
|
||
namespace winrt::SettingsControl::factory_implementation | ||
{ | ||
struct GlobalAppearance : GlobalAppearanceT<GlobalAppearance, implementation::GlobalAppearance> | ||
{ | ||
}; | ||
} |
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,7 @@ | ||
namespace SettingsControl | ||
{ | ||
[default_interface] runtimeclass GlobalAppearance : Windows.UI.Xaml.Controls.Page | ||
{ | ||
GlobalAppearance(); | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
src/TerminalSettings/TerminalSettings/GlobalAppearance.xaml
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,41 @@ | ||
<Page | ||
x:Class="SettingsControl.GlobalAppearance" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:SettingsControl" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:Controls="using:Microsoft.UI.Xaml.Controls" | ||
mc:Ignorable="d"> | ||
|
||
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" | ||
Margin="0,12,0,0"> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="Auto" /> | ||
<RowDefinition Height="*" /> | ||
</Grid.RowDefinitions> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="1*" /> | ||
<ColumnDefinition Width="1*" /> | ||
</Grid.ColumnDefinitions> | ||
<TextBlock Text="Global Appearance" | ||
Style="{StaticResource HeaderTextBlockStyle}" | ||
Margin="0,0,0,10" /> | ||
<StackPanel Grid.Row="1" Grid.Column="0" Margin="0,0,100,0"> | ||
<Controls:RadioButtons Header="Theme" Margin="0,0,0,10"> | ||
<RadioButton x:Name="DefaultTheme" Content="Default"/> | ||
<RadioButton x:Name="DarkTheme" Content="Dark"/> | ||
<RadioButton x:Name="LightTheme" Content="Light"/> | ||
</Controls:RadioButtons> | ||
<CheckBox Content="Show the title bar" /> | ||
<CheckBox Content="Show terminal title in title bar" /> | ||
<CheckBox Content="Always show tabs" /> | ||
<Controls:RadioButtons Header="Tab width mode" Margin="0,0,0,10"> | ||
<RadioButton x:Name="EqualTabWidthMode" Content="Equal"/> | ||
<RadioButton x:Name="TitleLengthTabWidthMode" Content="Title length"/> | ||
<RadioButton x:Name="CompactTabWidthMode" Content="Compact"/> | ||
</Controls:RadioButtons> | ||
<CheckBox Content="Hide close all tabs popup" /> | ||
</StackPanel> | ||
</Grid> | ||
</Page> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#include "pch.h" | ||
#include "Rendering.h" | ||
#include "Rendering.g.cpp" | ||
|
||
using namespace winrt; | ||
using namespace Windows::UI::Xaml; | ||
|
||
namespace winrt::SettingsControl::implementation | ||
{ | ||
Rendering::Rendering() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
void Rendering::ClickHandler(IInspectable const&, RoutedEventArgs const&) | ||
{ | ||
} | ||
} |
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,20 @@ | ||
#pragma once | ||
|
||
#include "Rendering.g.h" | ||
|
||
namespace winrt::SettingsControl::implementation | ||
{ | ||
struct Rendering : RenderingT<Rendering> | ||
{ | ||
Rendering(); | ||
|
||
void ClickHandler(Windows::Foundation::IInspectable const& sender, Windows::UI::Xaml::RoutedEventArgs const& args); | ||
}; | ||
} | ||
|
||
namespace winrt::SettingsControl::factory_implementation | ||
{ | ||
struct Rendering : RenderingT<Rendering, implementation::Rendering> | ||
{ | ||
}; | ||
} |
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,8 @@ | ||
namespace SettingsControl | ||
{ | ||
[default_interface] | ||
runtimeclass Rendering : Windows.UI.Xaml.Controls.Page | ||
{ | ||
Rendering(); | ||
} | ||
} |
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,30 @@ | ||
<Page | ||
x:Class="SettingsControl.Rendering" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:SettingsControl" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:Controls="using:Microsoft.UI.Xaml.Controls" | ||
mc:Ignorable="d"> | ||
|
||
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" | ||
Margin="0,12,0,0"> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="Auto" /> | ||
<RowDefinition Height="*" /> | ||
</Grid.RowDefinitions> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="1*" /> | ||
<ColumnDefinition Width="1*" /> | ||
</Grid.ColumnDefinitions> | ||
<TextBlock Text="Rendering" | ||
Style="{StaticResource HeaderTextBlockStyle}" | ||
Margin="0,0,0,10" /> | ||
<StackPanel Grid.Row="1" Grid.Column="0" Margin="0,0,100,0"> | ||
<CheckBox Content="Windows resize behavior" /> | ||
<CheckBox Content="Screen redrawing" /> | ||
<CheckBox Content="Software rendering" /> | ||
</StackPanel> | ||
</Grid> | ||
</Page> |
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