Skip to content

Commit 95fcee5

Browse files
committed
- Fixed Button Fonts
- Added correct message for installation repair
1 parent 8500891 commit 95fcee5

5 files changed

Lines changed: 19 additions & 6 deletions

File tree

Cloaks/App.xaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,18 @@
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
44
StartupUri="CloaksLoad.xaml">
55
<Application.Resources>
6+
7+
<Style TargetType="Label" >
8+
<Setter Property="FontFamily" Value="/Cloaks+;component/Assets/fonts/Louis George Cafe.ttf #Louis George Café"/>
9+
</Style>
10+
611
<!--Hover Buttons-->
712
<Style TargetType="Button" x:Key="hoverButton">
813
<Setter Property="Background" Value="#1c1c1c"></Setter>
914
<Setter Property="Foreground" Value="White"></Setter>
1015

1116
<Setter Property="FontSize" Value="16"></Setter>
17+
<Setter Property="FontFamily" Value="/Cloaks+;component/Assets/fonts/Louis George Cafe.ttf #Louis George Café"/>
1218
<Setter Property="Width" Value="128"></Setter>
1319

1420
<Setter Property="BorderThickness" Value="0"></Setter>

Cloaks/MainWindow.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<LineBreak />
6060
• Massive code refactor
6161
<LineBreak />
62-
• Current version is v.1.4
62+
• Current version is v.1.4.3
6363
</TextBlock>
6464
</Grid>
6565
</Border>
@@ -142,7 +142,7 @@
142142
</Grid>
143143
</Button>
144144

145-
<Label Content="Cloaks+ v.1.4" Style="{StaticResource navVersion}" Margin="3, 0, 0, 3" Width="124" VerticalAlignment="Bottom"/>
145+
<Label Content="Cloaks+ v.1.4.3" Style="{StaticResource navVersion}" Margin="3, 0, 0, 3" Width="124" VerticalAlignment="Bottom"/>
146146
</Grid>
147147
</Border>
148148
</Grid>

Cloaks/MainWindow.xaml.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,13 +311,20 @@ private void InstallCloaks()
311311
File.SetAttributes(HOSTS_PATH, FileAttributes.Normal);
312312
}
313313

314+
string message = "Cloaks+ successfully installed!";
315+
316+
if (CloaksPlusExists())
317+
{
318+
message = "Cloaks+ installation was successfully repaired!";
319+
}
320+
314321
RemoveAllInstallations();
315322

316323
// Append to the end of the file
317324
using (StreamWriter hosts = File.AppendText(HOSTS_PATH))
318325
{
319326
hosts.WriteLine("\n161.35.130.99 s.optifine.net # LINE INSERTED BY CLOAKS+");
320-
DialogueBox.Show("Cloaks+", "Cloaks+ successfully installed!", this);
327+
DialogueBox.Show("Cloaks+", message, this);
321328
}
322329
File.SetAttributes(HOSTS_PATH, FileAttributes.ReadOnly | FileAttributes.System);
323330

Cloaks/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
)]
2020

2121

22-
[assembly: AssemblyVersion("1.4.2.0")]
23-
[assembly: AssemblyFileVersion("1.4.2.0")]
22+
[assembly: AssemblyVersion("1.4.3.0")]
23+
[assembly: AssemblyFileVersion("1.4.3.0")]

Cloaks/app.manifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
3-
<assemblyIdentity version="1.4.2.0" name="Cloaks.app"/>
3+
<assemblyIdentity version="1.4.3.0" name="Cloaks.app"/>
44
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
55
<security>
66
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">

0 commit comments

Comments
 (0)