drop choose tray icon

This commit is contained in:
Mikhail Tergoev
2024-05-09 18:19:41 +03:00
parent 22a95cb344
commit ddbae037e4
2 changed files with 1 additions and 23 deletions

View File

@ -2735,14 +2735,8 @@ pw_tray_icon () {
}
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 \
--image="$TRAY_ICON" \
--image="$PW_GUI_ICON_PATH/portproton_tray_flatpak.svg" \
--command="bash -c tray_icon_click" \
--tooltip="PortProton" \
--icon-size=32 --menu="| \
@ -2761,11 +2755,6 @@ pw_gui_for_edit_db () {
else
CPU_LIMIT_VAR="disabled"
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
GPU_VAR="${PW_GPU_USE}"