-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
289 additions
and
0 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
151 changes: 151 additions & 0 deletions
151
src/Portal/Sucrose.Portal/Views/Controls/ThemeCreate.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,151 @@ | ||
<ui:ContentDialog | ||
x:Class="Sucrose.Portal.Views.Controls.ThemeCreate" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:vcontrols="clr-namespace:Sucrose.Portal.Views.Controls" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:local="clr-namespace:Sucrose.Portal.Views.Controls" | ||
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml" | ||
PrimaryButtonText="{DynamicResource Portal.ThemeCreate.Create}" | ||
CloseButtonText="{DynamicResource Portal.ThemeCreate.Close}" | ||
Title="{DynamicResource Portal.ThemeCreate.Title}" | ||
IsPrimaryButtonEnabled="False" | ||
Loaded="ContentDialog_Loaded" | ||
DialogMaxWidth="750" | ||
mc:Ignorable="d"> | ||
|
||
<ui:ContentDialog.Resources> | ||
<Style BasedOn="{StaticResource {x:Type ui:ContentDialog}}" TargetType="{x:Type local:ThemeCreate}" /> | ||
</ui:ContentDialog.Resources> | ||
|
||
<StackPanel HorizontalAlignment="Stretch" VerticalAlignment="Center" Orientation="Vertical" MinWidth="400"> | ||
<StackPanel x:Name="CreateCard" HorizontalAlignment="Stretch" VerticalAlignment="Center" Orientation="Vertical"> | ||
<ui:Button | ||
Margin="0" | ||
Padding="0" | ||
Cursor="Hand" | ||
x:Name="GifCreate" | ||
Appearance="Transparent" | ||
BorderBrush="Transparent" | ||
VerticalAlignment="Stretch" | ||
HorizontalAlignment="Stretch" | ||
VerticalContentAlignment="Stretch" | ||
HorizontalContentAlignment="Stretch"> | ||
<vcontrols:ExpanderCard x:Name="GifExpander" TitleText="Gif Tema" DescriptionText="'Gif' türündeki kendi temanızı oluşturun." LeftIconSymbol="Gif24" IsEnabled="False" Expandable="False"> | ||
<vcontrols:ExpanderCard.HeaderFrame> | ||
<ui:SymbolIcon | ||
Width="32" | ||
Symbol="ChevronRight24" | ||
Foreground="{DynamicResource TextFillColorPrimaryBrush}" /> | ||
</vcontrols:ExpanderCard.HeaderFrame> | ||
</vcontrols:ExpanderCard> | ||
</ui:Button> | ||
|
||
<ui:Button | ||
Padding="0" | ||
Cursor="Hand" | ||
Margin="0 3 0 0" | ||
x:Name="UrlCreate" | ||
Appearance="Transparent" | ||
BorderBrush="Transparent" | ||
VerticalAlignment="Stretch" | ||
HorizontalAlignment="Stretch" | ||
VerticalContentAlignment="Stretch" | ||
HorizontalContentAlignment="Stretch"> | ||
<vcontrols:ExpanderCard x:Name="UrlExpander" TitleText="Url Tema" DescriptionText="'Url' türündeki kendi temanızı oluşturun." LeftIconSymbol="SlideLink24" IsEnabled="False" Expandable="False"> | ||
<vcontrols:ExpanderCard.HeaderFrame> | ||
<ui:SymbolIcon | ||
Width="32" | ||
Symbol="ChevronRight24" | ||
Foreground="{DynamicResource TextFillColorPrimaryBrush}" /> | ||
</vcontrols:ExpanderCard.HeaderFrame> | ||
</vcontrols:ExpanderCard> | ||
</ui:Button> | ||
|
||
<ui:Button | ||
Padding="0" | ||
Cursor="Hand" | ||
Margin="0 3 0 0" | ||
x:Name="WebCreate" | ||
Appearance="Transparent" | ||
BorderBrush="Transparent" | ||
VerticalAlignment="Stretch" | ||
HorizontalAlignment="Stretch" | ||
VerticalContentAlignment="Stretch" | ||
HorizontalContentAlignment="Stretch"> | ||
<vcontrols:ExpanderCard x:Name="WebExpander" TitleText="Web Tema" DescriptionText="'Web' türündeki kendi temanızı oluşturun." LeftIconSymbol="GlobeDesktop24" IsEnabled="False" Expandable="False"> | ||
<vcontrols:ExpanderCard.HeaderFrame> | ||
<ui:SymbolIcon | ||
Width="32" | ||
Symbol="ChevronRight24" | ||
Foreground="{DynamicResource TextFillColorPrimaryBrush}" /> | ||
</vcontrols:ExpanderCard.HeaderFrame> | ||
</vcontrols:ExpanderCard> | ||
</ui:Button> | ||
|
||
<ui:Button | ||
Padding="0" | ||
Cursor="Hand" | ||
Margin="0 3 0 0" | ||
x:Name="VideoCreate" | ||
Appearance="Transparent" | ||
BorderBrush="Transparent" | ||
VerticalAlignment="Stretch" | ||
HorizontalAlignment="Stretch" | ||
VerticalContentAlignment="Stretch" | ||
HorizontalContentAlignment="Stretch"> | ||
<vcontrols:ExpanderCard x:Name="VideoExpander" TitleText="Video Tema" DescriptionText="'Video' türündeki kendi temanızı oluşturun." LeftIconSymbol="VideoClip24" IsEnabled="False" Expandable="False"> | ||
<vcontrols:ExpanderCard.HeaderFrame> | ||
<ui:SymbolIcon | ||
Width="32" | ||
Symbol="ChevronRight24" | ||
Foreground="{DynamicResource TextFillColorPrimaryBrush}" /> | ||
</vcontrols:ExpanderCard.HeaderFrame> | ||
</vcontrols:ExpanderCard> | ||
</ui:Button> | ||
|
||
<ui:Button | ||
Padding="0" | ||
Cursor="Hand" | ||
Margin="0 3 0 0" | ||
x:Name="YouTubeCreate" | ||
Appearance="Transparent" | ||
BorderBrush="Transparent" | ||
VerticalAlignment="Stretch" | ||
HorizontalAlignment="Stretch" | ||
VerticalContentAlignment="Stretch" | ||
HorizontalContentAlignment="Stretch"> | ||
<vcontrols:ExpanderCard x:Name="YouTubeExpander" TitleText="YouTube Tema" DescriptionText="'YouTube' türündeki kendi temanızı oluşturun." LeftIconSymbol="VideoRecording20" IsEnabled="False" Expandable="False"> | ||
<vcontrols:ExpanderCard.HeaderFrame> | ||
<ui:SymbolIcon | ||
Width="32" | ||
Symbol="ChevronRight24" | ||
Foreground="{DynamicResource TextFillColorPrimaryBrush}" /> | ||
</vcontrols:ExpanderCard.HeaderFrame> | ||
</vcontrols:ExpanderCard> | ||
</ui:Button> | ||
|
||
<ui:Button | ||
Padding="0" | ||
Cursor="Hand" | ||
Margin="0 3 0 0" | ||
x:Name="ApplicationCreate" | ||
Appearance="Transparent" | ||
BorderBrush="Transparent" | ||
VerticalAlignment="Stretch" | ||
HorizontalAlignment="Stretch" | ||
VerticalContentAlignment="Stretch" | ||
HorizontalContentAlignment="Stretch"> | ||
<vcontrols:ExpanderCard x:Name="ApplicationExpander" TitleText="Application Tema" DescriptionText="'Application' türündeki kendi temanızı oluşturun." LeftIconSymbol="AppGeneric24" IsEnabled="False" Expandable="False"> | ||
<vcontrols:ExpanderCard.HeaderFrame> | ||
<ui:SymbolIcon | ||
Width="32" | ||
Symbol="ChevronRight24" | ||
Foreground="{DynamicResource TextFillColorPrimaryBrush}" /> | ||
</vcontrols:ExpanderCard.HeaderFrame> | ||
</vcontrols:ExpanderCard> | ||
</ui:Button> | ||
</StackPanel> | ||
</StackPanel> | ||
</ui:ContentDialog> |
42 changes: 42 additions & 0 deletions
42
src/Portal/Sucrose.Portal/Views/Controls/ThemeCreate.xaml.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,42 @@ | ||
using System.IO; | ||
using System.Windows; | ||
using Wpf.Ui.Controls; | ||
using SECNT = Skylark.Enum.ClearNumericType; | ||
using SEMST = Skylark.Enum.ModeStorageType; | ||
using SEST = Skylark.Enum.StorageType; | ||
using SHC = Skylark.Helper.Culture; | ||
using SHN = Skylark.Helper.Numeric; | ||
using SMR = Sucrose.Memory.Readonly; | ||
using SPEIL = Sucrose.Portal.Extension.ImageLoader; | ||
using SPMI = Sucrose.Portal.Manage.Internal; | ||
using SSESSE = Skylark.Standard.Extension.Storage.StorageExtension; | ||
using SSSHS = Sucrose.Shared.Space.Helper.Size; | ||
using SSSSS = Skylark.Struct.Storage.StorageStruct; | ||
using SSTHI = Sucrose.Shared.Theme.Helper.Info; | ||
using SSTHV = Sucrose.Shared.Theme.Helper.Various; | ||
|
||
namespace Sucrose.Portal.Views.Controls | ||
{ | ||
/// <summary> | ||
/// ThemeCreate.xaml etkileşim mantığı | ||
/// </summary> | ||
public partial class ThemeCreate : ContentDialog, IDisposable | ||
{ | ||
public ThemeCreate() : base(SPMI.ContentDialogService.GetContentPresenter()) | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
private void ContentDialog_Loaded(object sender, RoutedEventArgs e) | ||
{ | ||
//tema oluşturma türü seçildiyse aktif edilecek | ||
//IsPrimaryButtonEnabled = true; | ||
} | ||
|
||
public void Dispose() | ||
{ | ||
GC.Collect(); | ||
GC.SuppressFinalize(this); | ||
} | ||
} | ||
} |
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
9 changes: 9 additions & 0 deletions
9
...d/Sucrose.Shared.Resources/Locales/Portal/Controls/ThemeCreate/Portal.ThemeCreate.DE.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,9 @@ | ||
<ResourceDictionary | ||
xmlns:system="clr-namespace:System;assembly=mscorlib" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
> | ||
<system:String x:Key="Portal.ThemeCreate.Title">Tema Oluşturma</system:String> | ||
<system:String x:Key="Portal.ThemeCreate.Create">Oluştur</system:String> | ||
<system:String x:Key="Portal.ThemeCreate.Close">Kapat</system:String> | ||
</ResourceDictionary> |
9 changes: 9 additions & 0 deletions
9
...d/Sucrose.Shared.Resources/Locales/Portal/Controls/ThemeCreate/Portal.ThemeCreate.EN.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,9 @@ | ||
<ResourceDictionary | ||
xmlns:system="clr-namespace:System;assembly=mscorlib" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
> | ||
<system:String x:Key="Portal.ThemeCreate.Title">Tema Oluşturma</system:String> | ||
<system:String x:Key="Portal.ThemeCreate.Create">Oluştur</system:String> | ||
<system:String x:Key="Portal.ThemeCreate.Close">Kapat</system:String> | ||
</ResourceDictionary> |
9 changes: 9 additions & 0 deletions
9
...d/Sucrose.Shared.Resources/Locales/Portal/Controls/ThemeCreate/Portal.ThemeCreate.ES.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,9 @@ | ||
<ResourceDictionary | ||
xmlns:system="clr-namespace:System;assembly=mscorlib" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
> | ||
<system:String x:Key="Portal.ThemeCreate.Title">Tema Oluşturma</system:String> | ||
<system:String x:Key="Portal.ThemeCreate.Create">Oluştur</system:String> | ||
<system:String x:Key="Portal.ThemeCreate.Close">Kapat</system:String> | ||
</ResourceDictionary> |
9 changes: 9 additions & 0 deletions
9
...d/Sucrose.Shared.Resources/Locales/Portal/Controls/ThemeCreate/Portal.ThemeCreate.FR.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,9 @@ | ||
<ResourceDictionary | ||
xmlns:system="clr-namespace:System;assembly=mscorlib" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
> | ||
<system:String x:Key="Portal.ThemeCreate.Title">Tema Oluşturma</system:String> | ||
<system:String x:Key="Portal.ThemeCreate.Create">Oluştur</system:String> | ||
<system:String x:Key="Portal.ThemeCreate.Close">Kapat</system:String> | ||
</ResourceDictionary> |
9 changes: 9 additions & 0 deletions
9
...d/Sucrose.Shared.Resources/Locales/Portal/Controls/ThemeCreate/Portal.ThemeCreate.PL.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,9 @@ | ||
<ResourceDictionary | ||
xmlns:system="clr-namespace:System;assembly=mscorlib" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
> | ||
<system:String x:Key="Portal.ThemeCreate.Title">Tema Oluşturma</system:String> | ||
<system:String x:Key="Portal.ThemeCreate.Create">Oluştur</system:String> | ||
<system:String x:Key="Portal.ThemeCreate.Close">Kapat</system:String> | ||
</ResourceDictionary> |
9 changes: 9 additions & 0 deletions
9
...d/Sucrose.Shared.Resources/Locales/Portal/Controls/ThemeCreate/Portal.ThemeCreate.TR.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,9 @@ | ||
<ResourceDictionary | ||
xmlns:system="clr-namespace:System;assembly=mscorlib" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
> | ||
<system:String x:Key="Portal.ThemeCreate.Title">Tema Oluşturma</system:String> | ||
<system:String x:Key="Portal.ThemeCreate.Create">Oluştur</system:String> | ||
<system:String x:Key="Portal.ThemeCreate.Close">Kapat</system:String> | ||
</ResourceDictionary> |
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