Skip to content
This repository has been archived by the owner on Aug 29, 2020. It is now read-only.

Commit

Permalink
Merge pull request #8 from adrianmteo/develop
Browse files Browse the repository at this point in the history
Rename project to Luna
  • Loading branch information
adrianmteo authored Mar 7, 2020
2 parents b467590 + 1bbc2f7 commit 813a370
Show file tree
Hide file tree
Showing 31 changed files with 45 additions and 45 deletions.
12 changes: 6 additions & 6 deletions .extra/setup-script.iss
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "Darky"
#define MyAppName "Luna"
#define MyAppVersion "1.0"
#define MyAppPublisher "Adrian Mateoaea"
#define MyAppURL "https://github.com/adrianmteo/Darky"
#define MyAppExeName "Darky.exe"
#define MyAppURL "https://github.com/adrianmteo/Luna"
#define MyAppExeName "Luna.exe"

[Setup]
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
Expand All @@ -30,7 +30,7 @@ UninstallDisplayIcon={app}\{#MyAppExeName}
UninstallDisplayName={#MyAppName}
DirExistsWarning=no
VersionInfoCompany={#MyAppPublisher}
VersionInfoCopyright=Copyright © {#MyAppPublisher} 2020
VersionInfoCopyright=Copyright {#MyAppPublisher} 2020
VersionInfoProductVersion={#MyAppVersion}
VersionInfoVersion={#MyAppVersion}

Expand All @@ -53,8 +53,8 @@ Name: "english"; MessagesFile: "compiler:Default.isl"
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]
Source: "..\Darky\bin\Release\Darky.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\Darky\bin\Release\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "..\Luna\bin\Release\Luna.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\Luna\bin\Release\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Expand Down
2 changes: 1 addition & 1 deletion Darky.sln → Luna.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29806.167
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Darky", "Darky\Darky.csproj", "{2DE9EC75-02AA-471B-A2CD-58A19F7BC391}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Luna", "Luna\Luna.csproj", "{2DE9EC75-02AA-471B-A2CD-58A19F7BC391}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
6 changes: 3 additions & 3 deletions Darky/App.config → Luna/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="Darky.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
<section name="Luna.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
<userSettings>
<Darky.Properties.Settings>
<Luna.Properties.Settings>
<setting name="Enabled" serializeAs="String">
<value>False</value>
</setting>
Expand Down Expand Up @@ -40,6 +40,6 @@
<setting name="DarkThemeMinute" serializeAs="String">
<value>0</value>
</setting>
</Darky.Properties.Settings>
</Luna.Properties.Settings>
</userSettings>
</configuration>
2 changes: 1 addition & 1 deletion Darky/App.xaml → Luna/App.xaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Application x:Class="Darky.App"
<Application x:Class="Luna.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="MainWindow.xaml">
Expand Down
6 changes: 3 additions & 3 deletions Darky/App.xaml.cs → Luna/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using Darky.Helpers;
using Darky.Properties;
using Luna.Helpers;
using Luna.Properties;
using System;
using System.Windows;

namespace Darky
namespace Luna
{
public partial class App : Application
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<UserControl x:Class="Darky.AnimatedView"
<UserControl x:Class="Luna.AnimatedView"
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:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:ms="clr-namespace:System;assembly=mscorlib"
xmlns:local="clr-namespace:Darky"
xmlns:local="clr-namespace:Luna"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Windows;
using System.Windows.Controls;

namespace Darky
namespace Luna
{
public partial class AnimatedView : UserControl
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Darky.Helpers
namespace Luna.Helpers
{
class RegistryHandler
{
Expand Down
2 changes: 1 addition & 1 deletion Darky/Helpers/Rules.cs → Luna/Helpers/Rules.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Globalization;
using System.Windows.Controls;

namespace Darky
namespace Luna
{
public class NumberRule : ValidationRule
{
Expand Down
6 changes: 3 additions & 3 deletions Darky/Helpers/TaskHandler.cs → Luna/Helpers/TaskHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
using System.Windows;
using Microsoft.Win32.TaskScheduler;

namespace Darky.Helpers
namespace Luna.Helpers
{
class TaskHandler
{
public static void DeleteTasks()
{
using (TaskService ts = new TaskService())
{
var folder = ts.RootFolder.SubFolders.FirstOrDefault(e => e.Name == "Darky");
var folder = ts.RootFolder.SubFolders.FirstOrDefault(e => e.Name == "Luna");

if (folder != null)
{
Expand All @@ -42,7 +42,7 @@ public static void CreateTasks(ushort lightTimeHour, ushort lightTimeMinute, ush

using (TaskService ts = new TaskService())
{
var folder = ts.RootFolder.CreateFolder("Darky");
var folder = ts.RootFolder.CreateFolder("Luna");

var lightModeTask = ts.NewTask();
lightModeTask.Triggers.Add(new DailyTrigger { StartBoundary = lightTime, DaysInterval = 1 });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Text;
using System.Threading.Tasks;

namespace Darky.Helpers
namespace Luna.Helpers
{
internal sealed class win32
{
Expand Down
6 changes: 3 additions & 3 deletions Darky/Darky.csproj → Luna/Luna.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{2DE9EC75-02AA-471B-A2CD-58A19F7BC391}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>Darky</RootNamespace>
<AssemblyName>Darky</AssemblyName>
<RootNamespace>Luna</RootNamespace>
<AssemblyName>Luna</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
Expand Down Expand Up @@ -41,7 +41,7 @@
<ApplicationManifest>Properties\app.manifest</ApplicationManifest>
</PropertyGroup>
<PropertyGroup>
<StartupObject>Darky.App</StartupObject>
<StartupObject>Luna.App</StartupObject>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>Resources\Icon.ico</ApplicationIcon>
Expand Down
8 changes: 4 additions & 4 deletions Darky/MainWindow.xaml → Luna/MainWindow.xaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<Window x:Class="Darky.MainWindow"
<Window x:Class="Luna.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
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"
xmlns:local="clr-namespace:Darky"
xmlns:local="clr-namespace:Luna"
mc:Ignorable="d"
Title="Darky" Width="400" Height="500"
Title="Luna" Width="400" Height="500"
Background="{DynamicResource ButtonBackgroundBrush}"
BorderBrush="{DynamicResource ButtonBorderBrush}" BorderThickness="1"
WindowStartupLocation="CenterScreen" WindowStyle="None" ResizeMode="NoResize">
Expand All @@ -22,7 +22,7 @@
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Grid MouseDown="Title_MouseDown" Background="Transparent">
<Label Content="Darky" FontSize="24" Margin="24 12 0 12" />
<Label Content="Luna" FontSize="24" Margin="24 12 0 12" />
</Grid>
<StackPanel Grid.Column="1" VerticalAlignment="Top" Orientation="Horizontal">
<Button Style="{StaticResource CloseButtonStyle}" Click="ButtonClose_Click">
Expand Down
10 changes: 5 additions & 5 deletions Darky/MainWindow.xaml.cs → Luna/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using Darky.Helpers;
using Darky.Properties;
using Luna.Helpers;
using Luna.Properties;
using Microsoft.Win32;
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;

namespace Darky
namespace Luna
{
public partial class MainWindow : Window
{
Expand Down Expand Up @@ -108,12 +108,12 @@ private void TextBox_KeyUp(object sender, KeyEventArgs e)

private void ButtonGithub_Click(object sender, RoutedEventArgs e)
{
Process.Start("https://github.com/adrianmteo/Darky");
Process.Start("https://github.com/adrianmteo/Luna");
}

private void ButtonIssues_Click(object sender, RoutedEventArgs e)
{
Process.Start("https://github.com/adrianmteo/Darky/issues");
Process.Start("https://github.com/adrianmteo/Luna/issues");
}

private void ButtonAbout_Click(object sender, RoutedEventArgs e)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Darky")]
[assembly: AssemblyTitle("Luna")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Darky")]
[assembly: AssemblyProduct("Luna")]
[assembly: AssemblyCopyright("Copyright © Adrian Mateoaea 2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="Darky.Properties" GeneratedClassName="Settings">
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="Luna.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="Enabled" Type="System.Boolean" Scope="User">
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Darky
# Luna

A super lightweight dark mode automatic switcher for Windows 10

Expand All @@ -10,19 +10,19 @@ A super lightweight dark mode automatic switcher for Windows 10

![](.repo/recording.gif)

[![](.repo/download.png)](https://github.com/adrianmteo/Darky/releases/latest/download/DarkySetup.exe)
[![](.repo/download.png)](https://github.com/adrianmteo/Luna/releases/latest/download/LunaSetup.exe)

## Install

You can download and install the latest release from [here](https://github.com/adrianmteo/Darky/releases).
You can download and install the latest release from [here](https://github.com/adrianmteo/Luna/releases).

**Note:** Windows SmartScreen might show you this warning screen. This is because the setup file is not being signed but the app is 100% safe to be run.

![](.repo/smartscreen.png)

## Description

I've built this app in my spare time to resolve my frustration with Windows 10 for not having automatic dark theme switcher. This may be included in the next releases of Windows 10 but for now here is Darky!
I've built this app in my spare time to resolve my frustration with Windows 10 for not having automatic dark theme switcher. This may be included in the next releases of Windows 10 but for now here is Luna!

This is a super lightweight app built using C# and WPF technologies. It creates task schedules for light/dark theme times. There are no running processes in the background and there is not need to start when Windows starts.

Expand Down

0 comments on commit 813a370

Please sign in to comment.