mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-06-21 21:46:27 +02:00
Version 3.0.381
This commit is contained in:
parent
f963c0a219
commit
3a363acf3a
1525 changed files with 60589 additions and 125098 deletions
7
SharedBusinessLogic/View/Themes/ITheme.cs
Normal file
7
SharedBusinessLogic/View/Themes/ITheme.cs
Normal file
|
@ -0,0 +1,7 @@
|
|||
namespace ShareeBike.View.Themes
|
||||
{
|
||||
public interface ITheme
|
||||
{
|
||||
string OperatorInfo { get; }
|
||||
}
|
||||
}
|
196
SharedBusinessLogic/View/Themes/LastenradBayern.xaml
Normal file
196
SharedBusinessLogic/View/Themes/LastenradBayern.xaml
Normal file
|
@ -0,0 +1,196 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ResourceDictionary
|
||||
xmlns="http://xamarin.com/schemas/2014/forms"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:android="clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core"
|
||||
x:Class="ShareeBike.Themes.LastenradBayern">
|
||||
|
||||
<!--Main color-->
|
||||
<Color x:Key="primary-back-title-color">#009BDB</Color>
|
||||
<Color x:Key="bright-primary-back-title-color">#C5E6E6</Color>
|
||||
|
||||
<!--Background color-->
|
||||
<Color x:Key="background-color">#BEBEBE</Color>
|
||||
|
||||
<!--Important text color-->
|
||||
<Color x:Key="important-text-color">#ff0000</Color>
|
||||
|
||||
<!--Attention color-->
|
||||
<Color x:Key="attention-color">#FF9214</Color>
|
||||
|
||||
<!--RentalProcess colors-->
|
||||
<Color x:Key="process-step-upcoming">#999999</Color>
|
||||
<Color x:Key="process-step-active">#0D0D0D</Color>
|
||||
<Color x:Key="process-step-succeeded">#00813e</Color>
|
||||
<Color x:Key="process-step-failed">#ff0000</Color>
|
||||
|
||||
<!--Primary Button-->
|
||||
<Style TargetType="Button">
|
||||
<Setter Property="WidthRequest" Value="400" />
|
||||
<Setter Property="HorizontalOptions" Value="Center" />
|
||||
<Setter Property="BorderWidth" Value="1"/>
|
||||
<Setter Property="CornerRadius" Value="0" />
|
||||
<Setter Property="FontSize" Value="Medium"/>
|
||||
<Setter Property="FontFamily" Value="RobotoRegular"/>
|
||||
<Setter Property="BorderColor" Value="{DynamicResource Key=primary-back-title-color}"/>
|
||||
<Setter Property="BackgroundColor" Value="{DynamicResource Key=primary-back-title-color}"/>
|
||||
<Setter Property="TextColor" Value="White"/>
|
||||
<Style.Triggers>
|
||||
<Trigger TargetType="Button"
|
||||
Property="IsEnabled"
|
||||
Value="False">
|
||||
<Setter Property="BorderColor" Value="DimGray"/>
|
||||
<Setter Property="BackgroundColor" Value="DimGray"/>
|
||||
<Setter Property="TextColor" Value="LightGray"/>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<!--Secondary Button-->
|
||||
<Style x:Key="SecondaryButton" TargetType="Button">
|
||||
<Setter Property="WidthRequest" Value="400" />
|
||||
<Setter Property="HorizontalOptions" Value="Center" />
|
||||
<Setter Property="BorderWidth" Value="1"/>
|
||||
<Setter Property="CornerRadius" Value="0" />
|
||||
<Setter Property="FontSize" Value="Medium"/>
|
||||
<Setter Property="FontFamily" Value="RobotoRegular"/>
|
||||
<Setter Property="BorderColor" Value="{DynamicResource Key=primary-back-title-color}"/>
|
||||
<Setter Property="BackgroundColor" Value="White"/>
|
||||
<Setter Property="TextColor" Value="{DynamicResource Key=primary-back-title-color}"/>
|
||||
<Style.Triggers>
|
||||
<Trigger TargetType="Button"
|
||||
Property="IsEnabled"
|
||||
Value="False">
|
||||
<Setter Property="BorderColor" Value="DimGray"/>
|
||||
<Setter Property="BackgroundColor" Value="LightGray"/>
|
||||
<Setter Property="TextColor" Value="DimGray"/>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<!--Button without outline-->
|
||||
<Style x:Key="NoOutlineButtonWhite" TargetType="Button">
|
||||
<Setter Property="WidthRequest" Value="400" />
|
||||
<Setter Property="HorizontalOptions" Value="Center" />
|
||||
<Setter Property="BorderWidth" Value="1"/>
|
||||
<Setter Property="CornerRadius" Value="0" />
|
||||
<Setter Property="FontSize" Value="Medium"/>
|
||||
<Setter Property="FontFamily" Value="RobotoRegular"/>
|
||||
<Setter Property="BorderColor" Value="White"/>
|
||||
<Setter Property="BackgroundColor" Value="White"/>
|
||||
<Setter Property="TextColor" Value="{DynamicResource Key=primary-back-title-color}"/>
|
||||
<Style.Triggers>
|
||||
<Trigger TargetType="Button"
|
||||
Property="IsEnabled"
|
||||
Value="False">
|
||||
<Setter Property="TextColor" Value="DimGray"/>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="NoOutlineButtonBackgroundColor" TargetType="Button">
|
||||
<Setter Property="WidthRequest" Value="400" />
|
||||
<Setter Property="HorizontalOptions" Value="Center" />
|
||||
<Setter Property="BorderWidth" Value="1"/>
|
||||
<Setter Property="CornerRadius" Value="0" />
|
||||
<Setter Property="FontSize" Value="Medium"/>
|
||||
<Setter Property="FontFamily" Value="RobotoRegular"/>
|
||||
<Setter Property="BorderColor" Value="{DynamicResource Key=background-color}"/>
|
||||
<Setter Property="BackgroundColor" Value="{DynamicResource Key=background-color}"/>
|
||||
<Setter Property="TextColor" Value="{DynamicResource Key=primary-back-title-color}"/>
|
||||
<Style.Triggers>
|
||||
<Trigger TargetType="Button"
|
||||
Property="IsEnabled"
|
||||
Value="False">
|
||||
<Setter Property="TextColor" Value="DimGray"/>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<!--Frame-->
|
||||
<Style TargetType="Frame">
|
||||
<Setter Property="CornerRadius" Value="0" />
|
||||
<Setter Property="HasShadow" Value="False" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="RunningProcessFrame" TargetType="Frame">
|
||||
<Setter Property="CornerRadius" Value="0" />
|
||||
<Setter Property="HasShadow" Value="False" />
|
||||
</Style>
|
||||
|
||||
<!--Switch-->
|
||||
<Style TargetType="Switch">
|
||||
<Style.Triggers>
|
||||
<Trigger TargetType="Switch"
|
||||
Property="IsToggled"
|
||||
Value="True">
|
||||
<Setter Property="ThumbColor" Value="{DynamicResource Key=primary-back-title-color}"/>
|
||||
<Setter Property="OnColor" Value="{DynamicResource Key=bright-primary-back-title-color}"/>
|
||||
</Trigger>
|
||||
<Trigger TargetType="Switch"
|
||||
Property="IsToggled"
|
||||
Value="False">
|
||||
<Setter Property="ThumbColor" Value="DimGray"/>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<!--Slider-->
|
||||
<Style TargetType="Slider">
|
||||
<Setter Property="ThumbColor" Value="{DynamicResource Key=primary-back-title-color}"/>
|
||||
</Style>
|
||||
|
||||
<!--Label-->
|
||||
<Style TargetType="Label">
|
||||
<Setter Property="FontSize" Value="Default"/>
|
||||
<Setter Property="FontFamily" Value="RobotoRegular"/>
|
||||
<Style.Triggers>
|
||||
<Trigger TargetType="Label"
|
||||
Property="FontAttributes"
|
||||
Value="Bold">
|
||||
<Setter Property="FontFamily" Value="RobotoBold"/>
|
||||
</Trigger>
|
||||
<Trigger TargetType="Label"
|
||||
Property="FontAttributes"
|
||||
Value="Italic">
|
||||
<Setter Property="FontFamily" Value="RobotoItalic"/>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<!--Entry-->
|
||||
<Style TargetType="Entry">
|
||||
<Setter Property="FontSize" Value="Default"/>
|
||||
<Setter Property="FontFamily" Value="RobotoRegular"/>
|
||||
</Style>
|
||||
|
||||
<!--Flyout Item-->
|
||||
<Style TargetType="FlyoutItem">
|
||||
<Setter Property="Shell.BackgroundColor" Value="{DynamicResource Key=primary-back-title-color}" />
|
||||
</Style>
|
||||
|
||||
<!--Navbar-->
|
||||
<Style x:Key="Label-Navbar" TargetType="Label">
|
||||
<Setter Property="FontSize" Value="20"/>
|
||||
<Setter Property="FontFamily" Value="RobotoRegular"/>
|
||||
<Setter Property="TextColor" Value="White"/>
|
||||
<Setter Property="VerticalOptions" Value="Start"/>
|
||||
<Setter Property="HorizontalOptions" Value="Start"/>
|
||||
<Setter Property="Padding" Value="0,14,0,12"/>
|
||||
<Setter Property="MaxLines" Value="1"/>
|
||||
</Style>
|
||||
<Style x:Key="Image-Navbar" TargetType="Image">
|
||||
<Setter Property="Source" Value="navbar_theme.png"/>
|
||||
<Setter Property="Aspect" Value="AspectFill"/>
|
||||
<Setter Property="Grid.ColumnSpan" Value="2"/>
|
||||
</Style>
|
||||
|
||||
<!--TabbedPage-->
|
||||
<Style x:Key="TabbedPageStyle" TargetType="TabbedPage">
|
||||
<Setter Property="BarBackgroundColor" Value="White"/>
|
||||
<Setter Property="UnselectedTabColor" Value="DimGray"/>
|
||||
<Setter Property="SelectedTabColor" Value="{x:DynamicResource primary-back-title-color}"/>
|
||||
<Setter Property="android:TabbedPage.ToolbarPlacement" Value="Default"/>
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
19
SharedBusinessLogic/View/Themes/LastenradBayern.xaml.cs
Normal file
19
SharedBusinessLogic/View/Themes/LastenradBayern.xaml.cs
Normal file
|
@ -0,0 +1,19 @@
|
|||
using ShareeBike.View.Themes;
|
||||
using Xamarin.Forms;
|
||||
using Xamarin.Forms.Xaml;
|
||||
|
||||
namespace ShareeBike.Themes
|
||||
{
|
||||
[XamlCompilation(XamlCompilationOptions.Compile)]
|
||||
public partial class LastenradBayern : ResourceDictionary, ITheme
|
||||
{
|
||||
public const string OPERATORINFO = "Lastenrad Bayern";
|
||||
|
||||
public LastenradBayern()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public string OperatorInfo => OPERATORINFO;
|
||||
}
|
||||
}
|
196
SharedBusinessLogic/View/Themes/ShareeBike.xaml
Normal file
196
SharedBusinessLogic/View/Themes/ShareeBike.xaml
Normal file
|
@ -0,0 +1,196 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ResourceDictionary
|
||||
xmlns="http://xamarin.com/schemas/2014/forms"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:android="clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core"
|
||||
x:Class="ShareeBike.Themes.ShareeBike">
|
||||
|
||||
<!--Main color-->
|
||||
<Color x:Key="primary-back-title-color">#009899</Color>
|
||||
<Color x:Key="bright-primary-back-title-color">#B5E6E6</Color>
|
||||
|
||||
<!--Background color-->
|
||||
<Color x:Key="background-color">#BEBEBE</Color>
|
||||
|
||||
<!--Important text color-->
|
||||
<Color x:Key="important-text-color">#BF2828</Color>
|
||||
|
||||
<!--Attention color-->
|
||||
<Color x:Key="attention-color">#FC870D</Color>
|
||||
|
||||
<!--RentalProcess colors-->
|
||||
<Color x:Key="process-step-upcoming">#999999</Color>
|
||||
<Color x:Key="process-step-active">#0D0D0D</Color>
|
||||
<Color x:Key="process-step-succeeded">#5DBF3B</Color>
|
||||
<Color x:Key="process-step-failed">#BF2828</Color>
|
||||
|
||||
<!--Primary Button-->
|
||||
<Style TargetType="Button">
|
||||
<Setter Property="WidthRequest" Value="400" />
|
||||
<Setter Property="HorizontalOptions" Value="Center" />
|
||||
<Setter Property="BorderWidth" Value="1"/>
|
||||
<Setter Property="CornerRadius" Value="10" />
|
||||
<Setter Property="FontSize" Value="Medium"/>
|
||||
<Setter Property="FontFamily" Value="RobotoRegular"/>
|
||||
<Setter Property="BorderColor" Value="{DynamicResource Key=primary-back-title-color}"/>
|
||||
<Setter Property="BackgroundColor" Value="{DynamicResource Key=primary-back-title-color}"/>
|
||||
<Setter Property="TextColor" Value="White"/>
|
||||
<Style.Triggers>
|
||||
<Trigger TargetType="Button"
|
||||
Property="IsEnabled"
|
||||
Value="False">
|
||||
<Setter Property="BorderColor" Value="DimGray"/>
|
||||
<Setter Property="BackgroundColor" Value="DimGray"/>
|
||||
<Setter Property="TextColor" Value="LightGray"/>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<!--Secondary Button-->
|
||||
<Style x:Key="SecondaryButton" TargetType="Button">
|
||||
<Setter Property="WidthRequest" Value="400" />
|
||||
<Setter Property="HorizontalOptions" Value="Center" />
|
||||
<Setter Property="BorderWidth" Value="1"/>
|
||||
<Setter Property="CornerRadius" Value="10" />
|
||||
<Setter Property="FontSize" Value="Medium"/>
|
||||
<Setter Property="FontFamily" Value="RobotoRegular"/>
|
||||
<Setter Property="BorderColor" Value="{DynamicResource Key=primary-back-title-color}"/>
|
||||
<Setter Property="BackgroundColor" Value="White"/>
|
||||
<Setter Property="TextColor" Value="{DynamicResource Key=primary-back-title-color}"/>
|
||||
<Style.Triggers>
|
||||
<Trigger TargetType="Button"
|
||||
Property="IsEnabled"
|
||||
Value="False">
|
||||
<Setter Property="BorderColor" Value="DimGray"/>
|
||||
<Setter Property="BackgroundColor" Value="LightGray"/>
|
||||
<Setter Property="TextColor" Value="DimGray"/>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<!--Button without outline-->
|
||||
<Style x:Key="NoOutlineButtonWhite" TargetType="Button">
|
||||
<Setter Property="WidthRequest" Value="400" />
|
||||
<Setter Property="HorizontalOptions" Value="Center" />
|
||||
<Setter Property="BorderWidth" Value="1"/>
|
||||
<Setter Property="CornerRadius" Value="10" />
|
||||
<Setter Property="FontSize" Value="Medium"/>
|
||||
<Setter Property="FontFamily" Value="RobotoRegular"/>
|
||||
<Setter Property="BorderColor" Value="White"/>
|
||||
<Setter Property="BackgroundColor" Value="White"/>
|
||||
<Setter Property="TextColor" Value="{DynamicResource Key=primary-back-title-color}"/>
|
||||
<Style.Triggers>
|
||||
<Trigger TargetType="Button"
|
||||
Property="IsEnabled"
|
||||
Value="False">
|
||||
<Setter Property="TextColor" Value="DimGray"/>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="NoOutlineButtonBackgroundColor" TargetType="Button">
|
||||
<Setter Property="WidthRequest" Value="400" />
|
||||
<Setter Property="HorizontalOptions" Value="Center" />
|
||||
<Setter Property="BorderWidth" Value="1"/>
|
||||
<Setter Property="CornerRadius" Value="10" />
|
||||
<Setter Property="FontSize" Value="Medium"/>
|
||||
<Setter Property="FontFamily" Value="RobotoRegular"/>
|
||||
<Setter Property="BorderColor" Value="{DynamicResource Key=background-color}"/>
|
||||
<Setter Property="BackgroundColor" Value="{DynamicResource Key=background-color}"/>
|
||||
<Setter Property="TextColor" Value="{DynamicResource Key=primary-back-title-color}"/>
|
||||
<Style.Triggers>
|
||||
<Trigger TargetType="Button"
|
||||
Property="IsEnabled"
|
||||
Value="False">
|
||||
<Setter Property="TextColor" Value="DimGray"/>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<!--Frame-->
|
||||
<Style TargetType="Frame">
|
||||
<Setter Property="CornerRadius" Value="0" />
|
||||
<Setter Property="HasShadow" Value="False" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="RunningProcessFrame" TargetType="Frame">
|
||||
<Setter Property="CornerRadius" Value="10" />
|
||||
<Setter Property="HasShadow" Value="False" />
|
||||
</Style>
|
||||
|
||||
<!--Switch-->
|
||||
<Style TargetType="Switch">
|
||||
<Style.Triggers>
|
||||
<Trigger TargetType="Switch"
|
||||
Property="IsToggled"
|
||||
Value="True">
|
||||
<Setter Property="ThumbColor" Value="{DynamicResource Key=primary-back-title-color}"/>
|
||||
<Setter Property="OnColor" Value="{DynamicResource Key=bright-primary-back-title-color}"/>
|
||||
</Trigger>
|
||||
<Trigger TargetType="Switch"
|
||||
Property="IsToggled"
|
||||
Value="False">
|
||||
<Setter Property="ThumbColor" Value="DimGray"/>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<!--Slider-->
|
||||
<Style TargetType="Slider">
|
||||
<Setter Property="ThumbColor" Value="{DynamicResource Key=primary-back-title-color}"/>
|
||||
</Style>
|
||||
|
||||
<!--Label-->
|
||||
<Style TargetType="Label">
|
||||
<Setter Property="FontSize" Value="Default"/>
|
||||
<Setter Property="FontFamily" Value="RobotoRegular"/>
|
||||
<Style.Triggers>
|
||||
<Trigger TargetType="Label"
|
||||
Property="FontAttributes"
|
||||
Value="Bold">
|
||||
<Setter Property="FontFamily" Value="RobotoBold"/>
|
||||
</Trigger>
|
||||
<Trigger TargetType="Label"
|
||||
Property="FontAttributes"
|
||||
Value="Italic">
|
||||
<Setter Property="FontFamily" Value="RobotoItalic"/>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<!--Entry-->
|
||||
<Style TargetType="Entry">
|
||||
<Setter Property="FontSize" Value="Default"/>
|
||||
<Setter Property="FontFamily" Value="RobotoRegular"/>
|
||||
</Style>
|
||||
|
||||
<!--Flyout Item-->
|
||||
<Style TargetType="FlyoutItem">
|
||||
<Setter Property="Shell.BackgroundColor" Value="{DynamicResource Key=primary-back-title-color}" />
|
||||
</Style>
|
||||
|
||||
<!--Navbar-->
|
||||
<Style x:Key="Label-Navbar" TargetType="Label">
|
||||
<Setter Property="FontSize" Value="20"/>
|
||||
<Setter Property="FontFamily" Value="RobotoRegular"/>
|
||||
<Setter Property="TextColor" Value="White"/>
|
||||
<Setter Property="VerticalOptions" Value="Start"/>
|
||||
<Setter Property="HorizontalOptions" Value="Start"/>
|
||||
<Setter Property="Padding" Value="0,14,0,12"/>
|
||||
<Setter Property="MaxLines" Value="1"/>
|
||||
</Style>
|
||||
<Style x:Key="Image-Navbar" TargetType="Image">
|
||||
<Setter Property="Source" Value="navbar_theme.png"/>
|
||||
<Setter Property="Aspect" Value="AspectFill"/>
|
||||
<Setter Property="Grid.ColumnSpan" Value="2"/>
|
||||
</Style>
|
||||
|
||||
<!--TabbedPage-->
|
||||
<Style x:Key="TabbedPageStyle" TargetType="TabbedPage">
|
||||
<Setter Property="BarBackgroundColor" Value="White"/>
|
||||
<Setter Property="UnselectedTabColor" Value="DimGray"/>
|
||||
<Setter Property="SelectedTabColor" Value="{x:DynamicResource primary-back-title-color}"/>
|
||||
<Setter Property="android:TabbedPage.ToolbarPlacement" Value="Default"/>
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
19
SharedBusinessLogic/View/Themes/ShareeBike.xaml.cs
Normal file
19
SharedBusinessLogic/View/Themes/ShareeBike.xaml.cs
Normal file
|
@ -0,0 +1,19 @@
|
|||
using ShareeBike.View.Themes;
|
||||
using Xamarin.Forms;
|
||||
using Xamarin.Forms.Xaml;
|
||||
|
||||
namespace ShareeBike.Themes
|
||||
{
|
||||
[XamlCompilation(XamlCompilationOptions.Compile)]
|
||||
public partial class ShareeBike : ResourceDictionary, ITheme
|
||||
{
|
||||
public const string OPERATORINFO = "sharee.bike";
|
||||
|
||||
public ShareeBike()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public string OperatorInfo => OPERATORINFO;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue