Setup for single file publishing

This commit is contained in:
pancakes 2025-08-26 15:35:35 +10:00
parent 8e063f09e7
commit 0e4c0f4ba5
Signed by: pancakes
SSH key fingerprint: SHA256:yrp4c4hhaPoPG07fb4QyQIgAdlbUdsJvUAydJEWnfTw
3 changed files with 44 additions and 46 deletions

View file

@ -5,6 +5,9 @@
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PublishSingleFile>true</PublishSingleFile>
<SelfContained>true</SelfContained>
<EnableCompressionInSingleFile>true</EnableCompressionInSingleFile>
</PropertyGroup>
<ItemGroup>
@ -15,10 +18,4 @@
<ProjectReference Include="..\ZwlrLayerShell\ZwlrLayerShell\ZwlrLayerShell.csproj" />
</ItemGroup>
<ItemGroup>
<Content Include="style.css">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Project>

View file

@ -83,7 +83,47 @@ application.OnActivate += (sender, eventArgs) =>
};
var css = CssProvider.New();
css.LoadFromPath("style.css");
css.LoadFromString("""
window {
background-color: transparent;
}
window label {
font-size: x-large;
color: white;
text-shadow: -1px -1px 0 #15249a, 1px -1px 0 #15249a, -1px 1px 0 #15249a, 1px 1px 0 #15249a;;
opacity: 0;
}
.fade-in {
animation: 8s fade-in ease-in-out both;
}
@keyframes fade-in {
0% {
transform: translateX(80px);
opacity: 0;
}
5% {
transform: translateX(50px);
opacity: 1;
}
80% {
opacity: 1;
}
85% {
transform: translateX(50px);
}
100% {
transform: translateX(0);
opacity: 0;
}
}
""");
StyleContext.AddProviderForDisplay(Display.GetDefault()!, css,
Gtk.Constants.STYLE_PROVIDER_PRIORITY_APPLICATION);

View file

@ -1,39 +0,0 @@
window {
background-color: transparent;
}
window label {
font-size: x-large;
color: white;
text-shadow: -1px -1px 0 #15249a, 1px -1px 0 #15249a, -1px 1px 0 #15249a, 1px 1px 0 #15249a;;
opacity: 0;
}
.fade-in {
animation: 8s fade-in ease-in-out both;
}
@keyframes fade-in {
0% {
transform: translateX(80px);
opacity: 0;
}
5% {
transform: translateX(50px);
opacity: 1;
}
80% {
opacity: 1;
}
85% {
transform: translateX(50px);
}
100% {
transform: translateX(0);
opacity: 0;
}
}