Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
87cd3c1
Initial commit for BackgroundTest project
neon-nyan Nov 28, 2025
78e14af
[WIP - Incomplete] Implement NewPipsPager
neon-nyan Nov 30, 2025
e4b429a
[Test Ready] Implement NewPipsPager pt. 2
neon-nyan Nov 30, 2025
5e5f092
Update NewPipsPager
neon-nyan Dec 2, 2025
ae56c01
Fix color for light theme
neon-nyan Dec 5, 2025
f9016e5
Initial property for MediaSlideshow
neon-nyan Dec 5, 2025
8332927
Merge branch 'main' into background-refactor
neon-nyan Dec 6, 2025
8769e4c
Rename MediaSlideshow -> PanelSlideshow + First test
neon-nyan Dec 6, 2025
52c91ed
Fix element animation flies out-of-bound while switching
neon-nyan Dec 7, 2025
4c11f35
Merge branch 'main' into background-refactor
neon-nyan Dec 7, 2025
ccb1dd6
Add buttons for Slideshow
neon-nyan Dec 7, 2025
8f24aae
Add countdown timer for PanelSlideshow
neon-nyan Dec 8, 2025
4fd89b2
Improve NewPipsPager + PanelSlideshow
neon-nyan Dec 11, 2025
5e1f027
Merge branch 'main' into background-refactor
neon-nyan Dec 11, 2025
7d3a1a8
Initial implementation for LayeredBackgroundImage
neon-nyan Dec 11, 2025
78d031b
Implement loader for Image type on LayeredBackgroundImage
neon-nyan Dec 12, 2025
3efdec9
Add Video Background support
neon-nyan Dec 14, 2025
b257e12
Fix video player disposed after foreground load
neon-nyan Dec 14, 2025
c3113f4
Cleanup + Fix element layout state when loaded
neon-nyan Dec 14, 2025
7387499
Fix NewPipsPager button state on selected
neon-nyan Dec 15, 2025
d9b43ee
Use Uri instead of full FileStream for cached local file
neon-nyan Dec 15, 2025
bfd5d7c
Use native ISurfaceImageSourceNativeWithD2D
neon-nyan Dec 15, 2025
79f3845
Update Hi3Helper.Win32
neon-nyan Dec 15, 2025
5a815b9
Perform full MediaPlayer disposal on pause
neon-nyan Dec 16, 2025
46656ea
Use unsafe direct call for video frame drawing's ``EndDraw()``
neon-nyan Dec 16, 2025
4b117c1
Use SwapChainPanelHelper.NativeSurfaceImageSource_BeginDrawUnsafe
neon-nyan Dec 16, 2025
60dc597
Let cache decide stream disposal
neon-nyan Dec 16, 2025
fca7fa2
CodeQA
neon-nyan Dec 16, 2025
a993922
Code migration time!
neon-nyan Dec 16, 2025
d6ec6ae
Merge branch 'main' into background-refactor
neon-nyan Dec 16, 2025
722816d
Fix compile error
neon-nyan Dec 16, 2025
96e7f71
Update LayeredBackgroundImageExtensions.cs
neon-nyan Dec 17, 2025
2caeeb5
Merge branch 'main' into background-refactor
neon-nyan Dec 19, 2025
ab9a096
Fix and use new custom elements for carousel
neon-nyan Dec 20, 2025
ab46ff9
Use UIElementExtensions.CursorType for controls
neon-nyan Dec 20, 2025
5c9d3d4
Run XamlStyler
neon-nyan Dec 20, 2025
4d879a9
Always creates new transition on swipe-based transition
neon-nyan Dec 20, 2025
fecc199
Apply slideshow carousel pause while window is minimized
neon-nyan Dec 20, 2025
316d8d1
Merge branch 'main' into background-refactor
neon-nyan Jan 4, 2026
73d38b0
Fix due to merge conflict
neon-nyan Jan 4, 2026
deb944d
Reduce Lottie animation resolution
neon-nyan Jan 4, 2026
0a408df
[skip ci] Sync translation Translate en_US.json in zh_CN
transifex-integration[bot] Jan 4, 2026
9bbd36d
Merge branch 'main' into background-refactor
neon-nyan Jan 4, 2026
df64fc4
Make background loading works (pt. 1)
neon-nyan Jan 10, 2026
5dbced3
Housekeeping
neon-nyan Jan 10, 2026
4c6d661
Merge branch 'main' into background-refactor
neon-nyan Jan 11, 2026
813b84a
Fix binding state on NativeAOT
neon-nyan Jan 11, 2026
98e744c
Fix custom background state
neon-nyan Jan 11, 2026
3049251
Avoid image change if the same background is used on region change
neon-nyan Jan 11, 2026
506e353
Make background loading works (pt. 2)
neon-nyan Jan 11, 2026
30854bc
Fix Memory Leaks, Code Clean-Up and Improvements
neon-nyan Jan 13, 2026
0fc9a4c
Implement context menu and video playback slider
neon-nyan Jan 14, 2026
3311268
Update submodule
neon-nyan Jan 14, 2026
b431f31
Push local changes
neon-nyan Jan 17, 2026
38a9f71
Make color palette work
neon-nyan Jan 17, 2026
0b3f392
Fix null return on DispatcherQueueExtensions.CreateObjectFromUIThread
neon-nyan Jan 18, 2026
db0587d
Fix bland color palette on video background
neon-nyan Jan 18, 2026
8f7a0c8
Merge branch 'main' into background-refactor
neon-nyan Jan 18, 2026
a377c5f
[skip ci] Sync translation Translate en_US.json in es_419
transifex-integration[bot] Jan 18, 2026
0a9a62d
Fix parallax jittering on low framerate monitor
neon-nyan Jan 19, 2026
5fc9107
Avoid excessive GC on media loading
neon-nyan Jan 19, 2026
9030ba5
Add WinEventHook event on WindowUtility
neon-nyan Jan 19, 2026
0895f60
Try Catch everywhere
neon-nyan Jan 19, 2026
776014c
Make option to ignore bitmap cache on LayeredBackgroundImage
neon-nyan Jan 19, 2026
4492d05
Fix image cache reload
neon-nyan Jan 19, 2026
c43b220
Fix COMException on UIElementExtensions on element set/getter
neon-nyan Jan 21, 2026
43711f6
Push local changes
neon-nyan Jan 21, 2026
18ba6de
Attempt to remove force GC (again)
neon-nyan Jan 22, 2026
050e960
Attempt to fix choppy parallax on low refresh rate
neon-nyan Jan 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 9 additions & 20 deletions CollapseLauncher/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@
<ResourceDictionary Source="ms-appx:///XAMLs/Theme/CustomControls/UserFeedbackDialog/UserFeedbackDialog.xaml" />
<ResourceDictionary Source="ms-appx:///XAMLs/Theme/CustomControls/SocMedIconButton/SocMedIconButton.xaml" />
<ResourceDictionary Source="ms-appx:///XAMLs/Theme/CustomControls/FullPageOverlay/FullPageOverlay.xaml" />

<ResourceDictionary Source="ms-appx:///XAMLs/Theme/CustomControls/NewPipsPager/NewPipsPager_themeresources.xaml" />
<ResourceDictionary Source="ms-appx:///XAMLs/Theme/CustomControls/NewPipsPager/NewPipsPager.xaml" />

<ResourceDictionary Source="ms-appx:///XAMLs/Theme/CustomControls/PanelSlideshow/PanelSlideshow_themeresources.xaml" />
<ResourceDictionary Source="ms-appx:///XAMLs/Theme/CustomControls/PanelSlideshow/PanelSlideshow.xaml" />

<ResourceDictionary Source="ms-appx:///XAMLs/Theme/CustomControls/LayeredBackgroundImage/LayeredBackgroundImage_themeresources.xaml" />
<ResourceDictionary Source="ms-appx:///XAMLs/Theme/CustomControls/LayeredBackgroundImage/LayeredBackgroundImage.xaml" />
<ResourceDictionary>
<ResourceDictionary.ThemeDictionaries>
<ResourceDictionary x:Key="Default">
Expand Down Expand Up @@ -69,11 +78,6 @@
Color="#000000" />
<SolidColorBrush x:Key="WindowBackground"
Color="#242424" />
<!-- TitleBar brushes -->
<LinearGradientBrush x:Key="BackgroundOverlayTitleBarBrush" StartPoint="0,1" EndPoint="0,0">
<GradientStop Offset="0" Color="#00000000" />
<GradientStop Offset="1" Color="#66000000" />
</LinearGradientBrush>
<!-- Dialog brushes -->
<ui:Color x:Key="DialogTitleColor">#ffd52a</ui:Color>
<SolidColorBrush x:Key="DialogTitleBrush"
Expand Down Expand Up @@ -107,11 +111,6 @@
TintColor="#222222"
TintLuminosityOpacity="0.75"
TintOpacity="0.0" />
<AcrylicBrush x:Key="BackgroundImageMaskAcrylicBrush"
FallbackColor="#EE222222"
TintColor="#222222"
TintLuminosityOpacity="0.7"
TintOpacity="0.0" />
<AcrylicBrush x:Key="PageBackgroundAcrylicBrush"
FallbackColor="#E1222222"
TintColor="#222222"
Expand Down Expand Up @@ -435,11 +434,6 @@
Color="#FFFFFF" />
<SolidColorBrush x:Key="WindowBackground"
Color="#ECECEC" />
<!-- TitleBar brushes -->
<LinearGradientBrush x:Key="BackgroundOverlayTitleBarBrush" StartPoint="0,1" EndPoint="0,0">
<GradientStop Offset="0" Color="#00FFFFFF" />
<GradientStop Offset="1" Color="#44FFFFFF" />
</LinearGradientBrush>
<!-- Dialog brushes -->
<ui:Color x:Key="DialogTitleColor">#693758</ui:Color>
<SolidColorBrush x:Key="DialogTitleBrush"
Expand Down Expand Up @@ -473,11 +467,6 @@
TintColor="#FFFFFF"
TintLuminosityOpacity="0.8"
TintOpacity="0" />
<AcrylicBrush x:Key="BackgroundImageMaskAcrylicBrush"
FallbackColor="#E0EEEEEE"
TintColor="#EEEEEE"
TintLuminosityOpacity="0.9"
TintOpacity="0.4" />
<AcrylicBrush x:Key="PageBackgroundAcrylicBrush"
FallbackColor="#FFEEEEEE"
TintColor="#FFFFFF"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Media;

#pragma warning disable IDE0130

#nullable enable
namespace CollapseLauncher.AnimatedVisuals.Lottie;

public abstract class BindableThemeChangeAnimation : DependencyObject
{
public Brush Foreground
{
get => (Brush)GetValue(ForegroundProperty);
set => SetValue(ForegroundProperty, value);
}

/// <summary>
/// Dependency property for Foreground.
/// </summary>
public static readonly DependencyProperty ForegroundProperty =
DependencyProperty.Register(nameof(Foreground), typeof(Brush), typeof(BindableThemeChangeAnimation),
new PropertyMetadata(null!, OnForegroundChanged));

protected static void OnForegroundChanged(DependencyObject d, DependencyPropertyChangedEventArgs args)
=> ((BindableThemeChangeAnimation)d).OnForegroundChanged(args.NewValue as Brush);

protected abstract void OnForegroundChanged(Brush? brush);
}
Loading