Skip to content

Commit 40f20a4

Browse files
authoredFeb 8, 2020
Merge pull request #12 from rocksdanister/dev-build
Dev build
2 parents 412fa54 + b2a74fc commit 40f20a4

38 files changed

+2229
-508
lines changed
 

‎README.md

+8-7
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ Help translate lively to other languages: <a href="https://github.com/rocksdanis
4949
![demo-gif7](/resources/html.gif?raw=true "html")
5050

5151
<a href="http://louie.co.nz/25th_hour/"> 25th Hour</a> by Loius Coyle
52-
* Chromium Embedded Framework.
5352
* Load HTML file or web address as wallpaper.
5453
* Runs webgl, javascript .. basically anything that works on chrome.
5554
* Audio Reactive Wallpaper support, create wallpapers that react to <a href="https://github.com/rocksdanister/lively/wiki/Web-Guide-II-:-System-Audio-Data">system audio</a>
55+
* Customisation support, <a href="https://github.com/rocksdanister/lively/wiki/Web-Guide-IV-:-Interaction">documentation.</a>
5656
#### Shaders
5757
![demo-gif7](/resources/shadertoy.gif?raw=true "htmlshadertoy")
5858

@@ -75,6 +75,7 @@ Help translate lively to other languages: <a href="https://github.com/rocksdanis
7575
* Experimentail, works for some.
7676
#### & more:
7777
- Easy to use, Just drag & drop media files & webpages into lively window to set it as wallpaper.
78+
- Real-time customisable web wallpaper support.
7879
- Easy to share Lively-zip format, just drag & drop the zip file to import it into Library, use the built-in creator to make them (ensures compatibility).
7980
- Hardware accelerated video playback, with option to use external Directshow codec of your choice. ( LAV(recommended), K-Lite, Kawaii Codec..)
8081
- Library to browse and preview wallpapers.
@@ -96,13 +97,13 @@ Help translate lively to other languages: <a href="https://github.com/rocksdanis
9697

9798
**_I'm not officially affiliated with Unity technologies, godot, shadertoy;_**
9899
## Download
99-
##### Latest version: v0.6.5.0 (Windows 10, 8.1)[What's new?](https://github.com/rocksdanister/lively/releases/tag/v0.6.5.0)
100-
- [`setup.exe`][direct-full-win32]
101-
_98MB, Web wallpaper support & some sample wallpapers included._
102-
103-
**From v0.6.5 onwards lively will be in installer form, new userdata & plugins location is “Documents\Lively Wallpaper”.**
100+
##### Latest version: v0.8.0.0 (Windows 10, 8.1)[What's new?](https://github.com/rocksdanister/lively/releases/tag/v0.8.0.0)
101+
- [`Download`][direct-full-win32]
102+
_90MB, Web wallpaper support & some sample wallpapers included._
103+
104+
**Latest Visual C++ Redistributable is required: [vc_redist.x86.exe](https://aka.ms/vs/16/release/vc_redist.x86.exe)**
104105

105-
[direct-full-win32]: https://github.com/rocksdanister/lively/releases/download/v0.6.5.0/lively_setup_x86_full_v0650.exe
106+
[direct-full-win32]: https://github.com/rocksdanister/lively/releases/download/v0.8.0.0/lively_setup_x86_full_v0800.exe
106107

107108
[Trouble Getting started? ](https://github.com/rocksdanister/lively/wiki/Getting-Started)
108109

‎src/lively setup/Inno.iss

+24-11
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
33

44
#define MyAppName "Lively Wallpaper"
5-
#define MyAppVersion "0.6.5.0"
5+
#define MyAppVersion "0.8.0.0"
66
#define MyAppPublisher "rocksdanister"
77
#define MyAppURL "https://github.com/rocksdanister/lively"
88
#define MyAppExeName "livelywpf.exe"
@@ -94,17 +94,26 @@ Name: "cef"; Description: "Web Wallpaper Support"; Types: full
9494
Name: "wallpapers"; Description: "Sample Wallpapers"; Types: full
9595

9696
[Files]
97+
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
9798
Source: "Release\livelywpf.exe"; DestDir: "{app}"; Flags: ignoreversion;Components: program
9899
Source: "Release\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs; Components: program
99100
Source: "Lively Wallpaper\external\cef\*"; DestDir: "{userdocs}\Lively Wallpaper\external\cef"; Flags: ignoreversion recursesubdirs createallsubdirs; Components: cef
100-
Source: "Lively Wallpaper\wallpapers\*"; DestDir: "{userdocs}\Lively Wallpaper\wallpapers"; Flags: ignoreversion recursesubdirs createallsubdirs onlyifdoesntexist uninsneveruninstall; Components: wallpapers
101-
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
101+
Source: "Lively Wallpaper\wallpapers\*"; DestDir: "{userdocs}\Lively Wallpaper\wallpapers"; Flags: ignoreversion recursesubdirs createallsubdirs onlyifdoesntexist uninsneveruninstall; Components: wallpapers; Check: ShouldInstallWallpapers
102+
; pushing new set of wp's with customisation to existing users, shouldInstallWallpaper check will be added from later version onwards..
103+
Source: "Lively Wallpaper\wallpapers new\*"; DestDir: "{userdocs}\Lively Wallpaper\wallpapers"; Flags: ignoreversion recursesubdirs createallsubdirs onlyifdoesntexist uninsneveruninstall; Components: wallpapers;
102104

103105
[Icons]
104106
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
105107
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
106108

109+
[Run]
110+
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall
111+
;skipifsilent
112+
107113
[Code]
114+
var
115+
isAlreadyInstalled: Boolean;
116+
108117
// event fired when the uninstall step is changed: https://stackoverflow.com/revisions/12645836/1
109118
procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
110119
begin
@@ -123,12 +132,6 @@ begin
123132
end;
124133
end;
125134
126-
[Run]
127-
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall
128-
;skipifsilent
129-
130-
[Code]
131-
132135
//Uninstall previous install: https://stackoverflow.com/questions/2000296/inno-setup-how-to-automatically-uninstall-previous-installed-version
133136
//note: Inno does not delete files, it just overwrites & keeps the old ones if they have different name..it can get accumulated/confusing when program structure change?!
134137
function GetUninstallString(): String;
@@ -164,16 +167,22 @@ begin
164167
165168
// default return value
166169
Result := 0;
167-
168170
// get the uninstall string of the old app
169171
sUnInstallString := GetUninstallString();
170172
if sUnInstallString <> '' then begin
171173
sUnInstallString := RemoveQuotes(sUnInstallString);
172174
if Exec(sUnInstallString, '/VERYSILENT /NORESTART /SUPPRESSMSGBOXES','', SW_HIDE, ewWaitUntilTerminated, iResultCode) then
173-
Result := 3
175+
begin
176+
isAlreadyInstalled := True;
177+
Result := 3;
178+
end
174179
else
180+
begin
181+
isAlreadyInstalled := True;
175182
Result := 2;
183+
end
176184
end else
185+
isAlreadyInstalled := False;
177186
Result := 1;
178187
end;
179188
@@ -189,3 +198,7 @@ begin
189198
end;
190199
end;
191200
201+
function ShouldInstallWallpapers: Boolean;
202+
begin
203+
Result := not isAlreadyInstalled;
204+
end;

‎src/livelywpf/livelywpf/App.xaml.cs

+14-3
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,22 @@ protected override void OnStartup(StartupEventArgs e)
107107
// you can then use the current theme and custom accent instead set a new theme
108108
Tuple<AppTheme, Accent> appStyle = ThemeManager.DetectAppStyle(Application.Current);
109109

110-
111-
// setting accent & theme
112-
ThemeManager.ChangeAppStyle(Application.Current,
110+
//white theme disabled temp: for v0.8
111+
if (SaveData.config.Theme == 9 || SaveData.config.Theme == 10)
112+
{
113+
SaveData.config.Theme = 0;
114+
SaveData.SaveConfig();
115+
ThemeManager.ChangeAppStyle(Application.Current,
113116
ThemeManager.GetAccent(SaveData.livelyThemes[SaveData.config.Theme].Accent),
114117
ThemeManager.GetAppTheme(SaveData.livelyThemes[SaveData.config.Theme].Base)); // or appStyle.Item1
118+
}
119+
else
120+
{
121+
// setting accent & theme
122+
ThemeManager.ChangeAppStyle(Application.Current,
123+
ThemeManager.GetAccent(SaveData.livelyThemes[SaveData.config.Theme].Accent),
124+
ThemeManager.GetAppTheme(SaveData.livelyThemes[SaveData.config.Theme].Base)); // or appStyle.Item1
125+
}
115126

116127
// now change app style to the custom accent and current theme
117128
//ThemeManager.ChangeAppStyle(Application.Current, ThemeManager.GetAccent("CustomAccent1"), ThemeManager.GetAppTheme(SaveData.livelyThemes[SaveData.config.Theme].Base));

0 commit comments

Comments
 (0)
Please sign in to comment.