Rework loading icon

This commit is contained in:
crschnick
2025-09-07 23:30:14 +00:00
parent 5ac53ba21a
commit e9c2e395ff
2 changed files with 7 additions and 6 deletions

View File

@@ -6,6 +6,7 @@ import io.xpipe.app.core.*;
import io.xpipe.app.core.window.AppDialog;
import io.xpipe.app.core.window.AppMainWindow;
import io.xpipe.app.issue.TrackEvent;
import io.xpipe.app.platform.ColorHelper;
import io.xpipe.app.platform.PlatformThread;
import io.xpipe.app.prefs.AppPrefs;
@@ -40,12 +41,12 @@ public class AppMainWindowContentComp extends SimpleComp {
var loadingIcon = new ImageView();
loadingIcon.setFitWidth(80);
loadingIcon.setFitHeight(80);
loadingIcon.setOpacity(0.9);
var color =
AppPrefs.get() != null && AppPrefs.get().theme().getValue().isDark()
? Color.web("#0b898aff").darker()
: Color.web("#0b898aff");
var dark = AppPrefs.get() != null && AppPrefs.get().theme().getValue().isDark();
loadingIcon.setOpacity(dark ? 0.95 : 0.93);
var color = AppPrefs.get() != null ? ColorHelper.withOpacity(AppPrefs.get().theme().getValue().getEmphasisColor().get(),
dark ? 0.7 : 0.85) : Color.TRANSPARENT;
DropShadow shadow = new DropShadow();
shadow.setRadius(10);
shadow.setColor(color);

View File

@@ -197,7 +197,7 @@ project.ext {
isFullRelease = System.getenv('RELEASE') != null && Boolean.parseBoolean(System.getenv('RELEASE'))
isStage = System.getenv('STAGE') != null && Boolean.parseBoolean(System.getenv('STAGE'))
ci = System.getenv('CI') != null
obfuscate = false
obfuscate = true
bundleCds = ci && fullVersion
// Names