drop choose tray icon
This commit is contained in:
parent
22a95cb344
commit
ddbae037e4
@ -2735,14 +2735,8 @@ pw_tray_icon () {
|
|||||||
}
|
}
|
||||||
export -f tray_icon_click_exit
|
export -f tray_icon_click_exit
|
||||||
|
|
||||||
if check_flatpak || [[ "$PW_DESKTOP_THEME" == "universal" ]]
|
|
||||||
then TRAY_ICON="$PW_GUI_ICON_PATH/portproton_tray_flatpak.svg"
|
|
||||||
elif [[ "$PW_DESKTOP_THEME" == "dark" ]]
|
|
||||||
then TRAY_ICON="$PW_GUI_ICON_PATH/portproton_tray_dark.svg"
|
|
||||||
else TRAY_ICON="$PW_GUI_ICON_PATH/portproton_tray_light.svg"
|
|
||||||
fi
|
|
||||||
"${pw_yad_v13_0}" --notification --no-middle \
|
"${pw_yad_v13_0}" --notification --no-middle \
|
||||||
--image="$TRAY_ICON" \
|
--image="$PW_GUI_ICON_PATH/portproton_tray_flatpak.svg" \
|
||||||
--command="bash -c tray_icon_click" \
|
--command="bash -c tray_icon_click" \
|
||||||
--tooltip="PortProton" \
|
--tooltip="PortProton" \
|
||||||
--icon-size=32 --menu="| \
|
--icon-size=32 --menu="| \
|
||||||
@ -2761,11 +2755,6 @@ pw_gui_for_edit_db () {
|
|||||||
else
|
else
|
||||||
CPU_LIMIT_VAR="disabled"
|
CPU_LIMIT_VAR="disabled"
|
||||||
fi
|
fi
|
||||||
# if [[ ! -z "${PW_AMD_VULKAN_USE}" ]] && [[ "${PW_AMD_VULKAN_USE}" != "disabled" ]] ; then
|
|
||||||
# AMD_VULKAN_VAR="${PW_AMD_VULKAN_USE}"
|
|
||||||
# else
|
|
||||||
# AMD_VULKAN_VAR="disabled"
|
|
||||||
# fi
|
|
||||||
|
|
||||||
if [[ ! -z "${PW_GPU_USE}" ]] && [[ "${PW_GPU_USE}" != "disabled" ]] ; then
|
if [[ ! -z "${PW_GPU_USE}" ]] && [[ "${PW_GPU_USE}" != "disabled" ]] ; then
|
||||||
GPU_VAR="${PW_GPU_USE}"
|
GPU_VAR="${PW_GPU_USE}"
|
||||||
|
@ -168,17 +168,6 @@ else
|
|||||||
echo 'export GUI_THEME="default"' >> "$USER_CONF"
|
echo 'export GUI_THEME="default"' >> "$USER_CONF"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check tray icon theme
|
|
||||||
if gsettings get org.gnome.desktop.interface color-scheme &>/dev/null ; then
|
|
||||||
COLOR_SCHEME="$(gsettings get org.gnome.desktop.interface color-scheme 2>/dev/null)"
|
|
||||||
if [[ "$COLOR_SCHEME" == "'prefer-dark'" ]]
|
|
||||||
then PW_DESKTOP_THEME="dark"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
PW_DESKTOP_THEME="universal"
|
|
||||||
fi
|
|
||||||
export PW_DESKTOP_THEME
|
|
||||||
|
|
||||||
# choose mirror
|
# choose mirror
|
||||||
if [[ -z "$MIRROR" ]] \
|
if [[ -z "$MIRROR" ]] \
|
||||||
&& [[ "$LANGUAGE" == "ru" ]]
|
&& [[ "$LANGUAGE" == "ru" ]]
|
||||||
|
Loading…
Reference in New Issue
Block a user