Skip to content

Commit

Permalink
QuizizzSupport is Free!
Browse files Browse the repository at this point in the history
I've also fixed one issue, but that's not important. Now you can get all of the code without supporting me!
  • Loading branch information
AndyFilter committed May 23, 2021
1 parent f2b3488 commit 6c80145
Show file tree
Hide file tree
Showing 16 changed files with 1,762 additions and 70 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -351,3 +351,4 @@ MigrationBackup/

# Ionide (cross platform F# VS Code tools) working folder
.ionide/
*.rar
Binary file removed Quizizz-Support.rar
Binary file not shown.
3 changes: 0 additions & 3 deletions QuizizzSupport/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:QuizizzSupport"
StartupUri="MainWindow.xaml">
<Application.Resources>

</Application.Resources>
</Application>
2 changes: 1 addition & 1 deletion QuizizzSupport/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ namespace QuizizzSupport
public partial class App : Application
{
}
}
}
290 changes: 290 additions & 0 deletions QuizizzSupport/DarkMode.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,290 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:QuizizzSupport">
<Color x:Key="ValidationErrorColor">#f44336</Color>
<SolidColorBrush x:Key="ValidationErrorBrush" Color="{StaticResource ValidationErrorColor}"/>
<SolidColorBrush x:Key="defaultForeground" Color="Brown"/>
<Color x:Key="BackgroundColor">#FF252525</Color>
<Color x:Key="LightBackgroundColor">#3B3B3B</Color>
<Color x:Key="DefaultFontColor">#e4ebea</Color>
<Color x:Key="GradientStartButtonColor">#D500F9</Color>
<Color x:Key="GradientStopButtonColor">#FF5722</Color>
<Color x:Key="HoverGradientStartButtonColor">#E040FB</Color>
<Color x:Key="HoverGradientStopButtonColor">#FF7043</Color>
<SolidColorBrush x:Key="DefaultBackground" Color="{StaticResource BackgroundColor}"/>
<SolidColorBrush x:Key="LightBackground" Color="{StaticResource LightBackgroundColor}"/>
<SolidColorBrush x:Key="FontColor" Color="{StaticResource DefaultFontColor}"/>
<SolidColorBrush x:Key="AnswerColor" Color="#AFB42B"/>
<SolidColorBrush x:Key="QuestionSearch" Color="#FFEA01"/>
<SolidColorBrush x:Key="SpecialQuestion" Color="#00BCD4"/>
<SolidColorBrush x:Key="SpecialQuestionSearch" Color="#FFEA00"/>
<SolidColorBrush x:Key="ButtonColor" Color="#1E88E5"/>
<SolidColorBrush x:Key="HoverButton" Color="#2499F7"/>
<SolidColorBrush x:Key="GradientStartButton" Color="#E040FB"/>
<SolidColorBrush x:Key="GradientStopButton" Color="#AD1457"/>

<Style TargetType="{x:Type Window}">
</Style>

<Style TargetType="{x:Type TextBlock}">
<Setter Property="Foreground" Value="#e4ebea"/>
</Style>

<Style TargetType="{x:Type Button}" x:Key="ButtonBase">
<Setter Property="FontSize" Value="16"/>
<Setter Property="Foreground" Value="White" />
<Setter Property="Background" Value="#4589FF" />
<Setter Property="Padding" Value="12,8,12,8" />
<Setter Property="FontFamily" Value="Montserrat Regular"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border Background="{TemplateBinding Background}" x:Name="BtnBorder" Padding="12,8,12,8" CornerRadius="5">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#80aeff"/>
<Setter Property="Foreground" Value="White" />
<Setter Property="Padding" Value="10,6,10,6" />
</Trigger>
</Style.Triggers>
</Style>

<Style TargetType="{x:Type Button}" x:Key="Colorful" BasedOn="{StaticResource ButtonBase}">
<Setter Property="Background">
<Setter.Value>
<LinearGradientBrush EndPoint="1,0" StartPoint="0,1" MappingMode="RelativeToBoundingBox" SpreadMethod="Pad">
<GradientStop Color="{StaticResource GradientStartButtonColor}" Offset="0.9"/>
<GradientStop Color="{StaticResource GradientStopButtonColor}"/>
</LinearGradientBrush>
</Setter.Value>
</Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border Background="{TemplateBinding Background}" x:Name="BtnBorder" Padding="12,8,12,8" CornerRadius="5">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background">
<Setter.Value>
<LinearGradientBrush EndPoint="1,0" StartPoint="0,1" MappingMode="RelativeToBoundingBox" SpreadMethod="Pad">
<GradientStop Color="{StaticResource HoverGradientStartButtonColor}" Offset="0.9"/>
<GradientStop Color="{StaticResource HoverGradientStopButtonColor}"/>
</LinearGradientBrush>
</Setter.Value>
</Setter>
<Setter Property="Padding" Value="10,6,10,6" />
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border Background="Transparent" BorderBrush="#666666" BorderThickness="2" Padding="10,6,10,6" CornerRadius="5">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Trigger>
</Style.Triggers>
</Style>

<Style TargetType="{x:Type Button}" x:Key="TopTabButton" BasedOn="{StaticResource ButtonBase}">
<Setter Property="Background" Value="{StaticResource LightBackground}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border Background="{TemplateBinding Background}" Padding="8,4,8,4" CornerRadius="5" Margin="5,5,5,5">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#ff4d4d">
</Setter>
</Trigger>
</Style.Triggers>
</Style>

<Style x:Key="TogglePressed" TargetType="{x:Type Button}" BasedOn="{StaticResource ButtonBase}">
<Setter Property="Background" Value="{StaticResource LightBackground}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border Background="Transparent" BorderBrush="#FF4D4D" BorderThickness="1" Padding="6,2,6,2" CornerRadius="5" Margin="5,5,5,5">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border Background="#ff4d4d" BorderBrush="#FF4D4D" BorderThickness="1" Padding="6,2,6,2" CornerRadius="5" Margin="5,5,5,5">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Trigger>
</Style.Triggers>
</Style>

<Style TargetType="{x:Type Button}" x:Key="Normal" BasedOn="{StaticResource ButtonBase}">
<Setter Property="Background" Value="{StaticResource ButtonColor}" />
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="{StaticResource HoverButton}"/>
</Trigger>
</Style.Triggers>
</Style>

<Style TargetType="{x:Type Label}">
<Setter Property="FontSize" Value="14"/>
<Setter Property="FontFamily" Value="Montserrat Medium"/>
<Setter Property="Foreground" Value="{StaticResource FontColor}"/>
<Setter Property="Padding" Value="2"/>
</Style>

<ControlTemplate x:Key="TextBoxBaseControlTemplate" TargetType="{x:Type TextBoxBase}">
<Border Background="{TemplateBinding Background}"
x:Name="Bd"
BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="5" Padding="4">
<ScrollViewer x:Name="PART_ContentHost" Padding="0" VerticalAlignment="Center" >
</ScrollViewer>
</Border>
</ControlTemplate>

<Style TargetType="{x:Type TextBox}">
<Setter Property="FontSize" Value="14"/>
<Setter Property="FontFamily" Value="Montserrat Regular"/>
<Setter Property="Foreground" Value="White" />
<Setter Property="Background" Value="{StaticResource LightBackground}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type TextBox}">
<Border Background="{TemplateBinding Background}" CornerRadius="5">
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>

<Style x:Key="ScrollThumbs" TargetType="{x:Type Thumb}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Thumb}">
<Grid x:Name="Grid">
<Rectangle HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Fill="Transparent" />
<Border x:Name="Rectangle1" CornerRadius="5,0,0,5" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Background="{TemplateBinding Background}" />
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="Tag" Value="Horizontal">
<Setter TargetName="Rectangle1" Property="Width" Value="Auto" />
<Setter TargetName="Rectangle1" Property="Height" Value="Auto" />
<Setter TargetName="Rectangle1" Property="CornerRadius" Value="0,0,5,5"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>

<Style TargetType="{x:Type ScrollViewer}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ScrollViewer}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<ScrollContentPresenter Grid.Column="0" />
<ScrollBar x:Name="PART_VerticalScrollBar" Grid.Row="0" Grid.Column="1" Value="{TemplateBinding VerticalOffset}" Maximum="{TemplateBinding ScrollableHeight}" ViewportSize="{TemplateBinding ViewportHeight}" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"/>
<ScrollBar x:Name="PART_HorizontalScrollBar" Orientation="Horizontal" Grid.Row="1" Grid.Column="0" Value="{TemplateBinding HorizontalOffset}" Maximum="{TemplateBinding ScrollableWidth}" ViewportSize="{TemplateBinding ViewportWidth}" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}"/>
<!--<Rectangle Grid.Row="1" Grid.Column="1" Fill="Red"/>-->
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>

<Style TargetType="{x:Type ScrollBar}">
<Setter Property="Background" Value="{StaticResource LightBackground}" />
<Setter Property="Foreground" Value="#5B5B5B"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ScrollBar}">
<Border x:Name="BackgroundBorder" Background="{TemplateBinding Background}" CornerRadius="5,0,0,5">
<Grid x:Name="GridRoot" Width="19">
<Track x:Name="PART_Track" Grid.Row="0" IsDirectionReversed="true" Focusable="false">
<Track.Thumb>
<Thumb x:Name="Thumb" Background="{TemplateBinding Foreground}" Style="{DynamicResource ScrollThumbs}" />
</Track.Thumb>
</Track>
</Grid>
</Border>

<ControlTemplate.Triggers>
<Trigger SourceName="Thumb" Property="IsMouseOver" Value="true">
<Setter Value="#5B5B5B" TargetName="Thumb" Property="Background" />
</Trigger>
<Trigger SourceName="Thumb" Property="IsDragging" Value="true">
<Setter Value="#6B6B6B" TargetName="Thumb" Property="Background" />
</Trigger>

<Trigger Property="IsEnabled" Value="false">
<Setter TargetName="Thumb" Property="Visibility" Value="Collapsed" />
</Trigger>
<Trigger Property="Orientation" Value="Horizontal">
<Setter Property="Margin" Value="0,0,0,0"/>
<Setter TargetName="GridRoot" Property="LayoutTransform">
<Setter.Value>
<RotateTransform Angle="-90" />
</Setter.Value>
</Setter>
<Setter TargetName="BackgroundBorder" Property="CornerRadius" Value="5,5,0,0"/>
<Setter TargetName="PART_Track" Property="LayoutTransform">
<Setter.Value>
<RotateTransform Angle="-90" />
</Setter.Value>
</Setter>
<Setter Property="Width" Value="Auto" />
<Setter Property="Height" Value="8" />
<Setter TargetName="Thumb" Property="Tag" Value="Horizontal" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>

<Style x:Key="Window" TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="20,8,20,8"/>
</Style>

<Style TargetType="{x:Type Border}" x:Key="TopTab">
<Setter Property="CornerRadius" Value="15"/>
<Setter Property="BorderThickness" Value="0,0,0,2"/>
<Setter Property="BorderBrush" Value="{StaticResource LightBackground}"/>
</Style>

</ResourceDictionary>
Binary file added QuizizzSupport/Discord-Logo+Wordmark-Color.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added QuizizzSupport/Fonts/Montserrat-Medium.ttf
Binary file not shown.
Binary file added QuizizzSupport/Fonts/Montserrat-Regular.ttf
Binary file not shown.
Loading

0 comments on commit 6c80145

Please sign in to comment.