mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-04-22 07:29:05 -04:00
Rework loading icon
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user