mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-14 06:14:01 +03:00
Compare commits
1 Commits
fix/killsw
...
fix/icon-h
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
99ec574465 |
12
client/android/res/drawable/ic_launcher_background.xml
Normal file
12
client/android/res/drawable/ic_launcher_background.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Фон adaptive-иконки: мягкий тёмный диагональный градиент,
|
||||
повторяющий вид оригинального icon.png (светлее сверху-слева, темнее снизу-справа). -->
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<gradient
|
||||
android:type="linear"
|
||||
android:angle="135"
|
||||
android:startColor="#2A2A2E"
|
||||
android:centerColor="#17171A"
|
||||
android:endColor="#0E0E11" />
|
||||
</shape>
|
||||
10
client/android/res/drawable/ic_launcher_monochrome.xml
Normal file
10
client/android/res/drawable/ic_launcher_monochrome.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Монохромный слой для темизированных иконок Android 13+.
|
||||
Переиспользует векторный силуэт логотипа, вписывая его в safe-zone (~61%)
|
||||
adaptive-иконки. Цвет силуэта система заменяет на тему пользователя. -->
|
||||
<inset xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:drawable="@drawable/ic_amnezia_round"
|
||||
android:insetLeft="19.5%"
|
||||
android:insetTop="19.5%"
|
||||
android:insetRight="19.5%"
|
||||
android:insetBottom="19.5%" />
|
||||
6
client/android/res/mipmap-anydpi-v26/icon.xml
Normal file
6
client/android/res/mipmap-anydpi-v26/icon.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@drawable/ic_launcher_background" />
|
||||
<foreground android:drawable="@mipmap/ic_launcher_foreground" />
|
||||
<monochrome android:drawable="@drawable/ic_launcher_monochrome" />
|
||||
</adaptive-icon>
|
||||
6
client/android/res/mipmap-anydpi-v26/icon_round.xml
Normal file
6
client/android/res/mipmap-anydpi-v26/icon_round.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@drawable/ic_launcher_background" />
|
||||
<foreground android:drawable="@mipmap/ic_launcher_foreground" />
|
||||
<monochrome android:drawable="@drawable/ic_launcher_monochrome" />
|
||||
</adaptive-icon>
|
||||
BIN
client/android/res/mipmap-hdpi/ic_launcher_foreground.png
Normal file
BIN
client/android/res/mipmap-hdpi/ic_launcher_foreground.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
BIN
client/android/res/mipmap-mdpi/ic_launcher_foreground.png
Normal file
BIN
client/android/res/mipmap-mdpi/ic_launcher_foreground.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.6 KiB |
BIN
client/android/res/mipmap-xhdpi/ic_launcher_foreground.png
Normal file
BIN
client/android/res/mipmap-xhdpi/ic_launcher_foreground.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
BIN
client/android/res/mipmap-xxhdpi/ic_launcher_foreground.png
Normal file
BIN
client/android/res/mipmap-xxhdpi/ic_launcher_foreground.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 25 KiB |
BIN
client/android/res/mipmap-xxxhdpi/ic_launcher_foreground.png
Normal file
BIN
client/android/res/mipmap-xxxhdpi/ic_launcher_foreground.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 35 KiB |
25
client/android/res/values-v31/styles.xml
Normal file
25
client/android/res/values-v31/styles.xml
Normal file
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- Тема приложения для Android 12+ (API 31+).
|
||||
Переопределяет NoActionBar, добавляя явную конфигурацию системного
|
||||
splash-экрана, чтобы убрать белую плашку вокруг иконки на заставке.
|
||||
На API < 31 действует базовый NoActionBar из values/styles.xml. -->
|
||||
<style name="NoActionBar">
|
||||
<!-- Базовые атрибуты (синхронизированы с values/styles.xml) -->
|
||||
<item name="android:windowBackground">@color/black</item>
|
||||
<item name="android:colorBackground">@color/black</item>
|
||||
<item name="android:windowActionBar">false</item>
|
||||
<item name="android:windowNoTitle">true</item>
|
||||
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
|
||||
<item name="android:enforceNavigationBarContrast">false</item>
|
||||
<item name="android:enforceStatusBarContrast">false</item>
|
||||
|
||||
<!-- Splash-экран Android 12+ -->
|
||||
<!-- Фон заставки — тёмный, в цвет иконки и темы приложения. -->
|
||||
<item name="android:windowSplashScreenBackground">@color/ic_launcher_background</item>
|
||||
<!-- Тёмный фон за иконкой: убирает системную белую плашку. -->
|
||||
<item name="android:windowSplashScreenIconBackgroundColor">@color/ic_launcher_background</item>
|
||||
<!-- Иконка заставки = adaptive-иконка (система покажет цветной foreground). -->
|
||||
<item name="android:windowSplashScreenAnimatedIcon">@mipmap/icon</item>
|
||||
</style>
|
||||
</resources>
|
||||
5
client/android/res/values/colors.xml
Normal file
5
client/android/res/values/colors.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- Фон adaptive-иконки. Совпадает с @color/black из styles.xml (#FF0E0E11). -->
|
||||
<color name="ic_launcher_background">#0E0E11</color>
|
||||
</resources>
|
||||
@@ -318,7 +318,7 @@ bool KillSwitch::enableKillSwitch(const QJsonObject &configStr, int vpnAdapterIn
|
||||
LinuxFirewall::setAnchorEnabled(LinuxFirewall::Both, QStringLiteral("100.blockAll"), blockAll);
|
||||
LinuxFirewall::setAnchorEnabled(LinuxFirewall::IPv4, QStringLiteral("110.allowNets"), allowNets);
|
||||
LinuxFirewall::updateAllowNets(allownets);
|
||||
LinuxFirewall::setAnchorEnabled(LinuxFirewall::IPv4, QStringLiteral("120.blockNets"), blockNets);
|
||||
LinuxFirewall::setAnchorEnabled(LinuxFirewall::IPv4, QStringLiteral("120.blockNets"), blockAll);
|
||||
LinuxFirewall::updateBlockNets(blocknets);
|
||||
LinuxFirewall::setAnchorEnabled(LinuxFirewall::Both, QStringLiteral("130.allowMarkedXray"), true);
|
||||
LinuxFirewall::setAnchorEnabled(LinuxFirewall::IPv4, QStringLiteral("200.allowVPN"), true);
|
||||
|
||||
Reference in New Issue
Block a user