mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-05-03 19:30:31 +00:00
macos style fixes
This commit is contained in:
@@ -53,6 +53,7 @@ public class DesktopShortcuts {
|
||||
|
||||
private static Path createMacOSShortcut(String executable, String args, String name) throws Exception {
|
||||
var icon = XPipeInstallation.getLocalDefaultInstallationIcon();
|
||||
var assets = icon.getParent().resolve("Assets.car");
|
||||
var base = DesktopHelper.getDesktopDirectory().resolve(name + ".app");
|
||||
var content = String.format(
|
||||
"""
|
||||
@@ -79,12 +80,15 @@ public class DesktopShortcuts {
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleIconName</key>
|
||||
<string>xpipe</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>icon.icns</string>
|
||||
<string>xpipe</string>
|
||||
</dict>
|
||||
</plist>
|
||||
""");
|
||||
pc.executeSimpleCommand("cp \"" + icon + "\" \"" + base + "/Contents/Resources/icon.icns\"");
|
||||
pc.command("cp \"" + icon + "\" \"" + base + "/Contents/Resources/xpipe.icns\"").execute();
|
||||
pc.command("cp \"" + assets + "\" \"" + base + "/Contents/Resources/Assets.car\"").execute();
|
||||
}
|
||||
return base;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
.root:windows { -color-bg-default-transparent: #1C1C1ED5; }
|
||||
|
||||
.root:macos { -color-bg-default-transparent: #0d0d10D6; }
|
||||
.root:macos { -color-bg-default-transparent: #0d0d10E6; }
|
||||
|
||||
.root .button, .root .toggle-button {
|
||||
-fx-effect: NONE;
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
.root { -color-bg-default-transparent: #FFFFFFAF; }
|
||||
.root:windows { -color-bg-default-transparent: #FFFFFFAF; }
|
||||
|
||||
.root:macos { -color-bg-default-transparent: #FFFFFFBF; }
|
||||
|
||||
.root .button, .root .toggle-button {
|
||||
-fx-effect: NONE;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
.root:windows { -color-bg-default-transparent: #0d1117c3; }
|
||||
|
||||
.root:macos { -color-bg-default-transparent: #080d13d3; }
|
||||
.root:macos { -color-bg-default-transparent: #080d13e3; }
|
||||
|
||||
.root .table-view {
|
||||
-color-cell-bg-odd: derive(-color-bg-subtle, -45%);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
.root:windows { -color-bg-default-transparent: #282a36c2; }
|
||||
|
||||
.root:macos { -color-bg-default-transparent: #20212cD3; }
|
||||
.root:macos { -color-bg-default-transparent: #20212ce3; }
|
||||
|
||||
.root .table-view {
|
||||
-color-cell-bg-odd: derive(-color-bg-subtle, -35%);
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
.root { -color-bg-default-transparent: #FFFFFFAF; }
|
||||
.root:windows { -color-bg-default-transparent: #FFFFFFAF; }
|
||||
|
||||
.root:macos { -color-bg-default-transparent: #FFFFFFBF; }
|
||||
|
||||
.root .table-view {
|
||||
-color-cell-bg-odd: derive(-color-bg-subtle, 35%);
|
||||
|
||||
@@ -87,7 +87,7 @@
|
||||
-fx-background-color: -color-bg-default;
|
||||
}
|
||||
|
||||
.root:macos { -color-bg-default-transparent: #13171dd2; }
|
||||
.root:macos { -color-bg-default-transparent: #13171de6; }
|
||||
|
||||
.root:windows { -color-bg-default-transparent: #191c23b8; }
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
.root:macos { -color-bg-default-transparent: #2E3440d2; }
|
||||
.root:macos { -color-bg-default-transparent: #2E3440e6; }
|
||||
|
||||
.root:windows { -color-bg-default-transparent: #2E3440c0; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user