Added changing the tray icon depending on the theme variant
This commit is contained in:
parent
1b81250f39
commit
a5727d66f4
BIN
data_from_portwine/img/gui/portproton_tray_dark.png
Normal file
BIN
data_from_portwine/img/gui/portproton_tray_dark.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB |
@ -2484,9 +2484,10 @@ pw_tray_icon () {
|
||||
}
|
||||
export -f tray_icon_click_exit
|
||||
|
||||
if [[ "$PW_DESKTOP_THEME" == "dark" ]] ; then
|
||||
# --window-icon="$PW_GUI_ICON_PATH/portproton_tray.png" \
|
||||
"${pw_yad_v13_0}" --notification --no-middle \
|
||||
--image="$PW_GUI_ICON_PATH/portproton_tray.png" \
|
||||
--image="$PW_GUI_ICON_PATH/portproton_tray_light.png" \
|
||||
--command="bash -c tray_icon_click" \
|
||||
--tooltip="PortProton" \
|
||||
--icon-size=32 --menu="| \
|
||||
@ -2494,6 +2495,18 @@ pw_tray_icon () {
|
||||
${loc_tray_tascmng}!bash -c pw_tray_taskmgr!"$PW_GUI_ICON_PATH/wine_system.png"|| \
|
||||
${loc_tray_cangelog}!bash -c open_changelog!"$PW_GUI_ICON_PATH/history.png"|| \
|
||||
${loc_tray_force_exit} !bash -c tray_icon_click_exit!"$PW_GUI_ICON_PATH/close.png"||" 2>/dev/null &
|
||||
else
|
||||
# --window-icon="$PW_GUI_ICON_PATH/portproton_tray.png" \
|
||||
"${pw_yad_v13_0}" --notification --no-middle \
|
||||
--image="$PW_GUI_ICON_PATH/portproton_tray_dark.png" \
|
||||
--command="bash -c tray_icon_click" \
|
||||
--tooltip="PortProton" \
|
||||
--icon-size=32 --menu="| \
|
||||
${loc_tray_winefile}!bash -c pw_tray_winefile!"$PW_GUI_ICON_PATH/wine_file.png"|| \
|
||||
${loc_tray_tascmng}!bash -c pw_tray_taskmgr!"$PW_GUI_ICON_PATH/wine_system.png"|| \
|
||||
${loc_tray_cangelog}!bash -c open_changelog!"$PW_GUI_ICON_PATH/history.png"|| \
|
||||
${loc_tray_force_exit} !bash -c tray_icon_click_exit!"$PW_GUI_ICON_PATH/close.png"||" 2>/dev/null &
|
||||
fi
|
||||
|
||||
return 0
|
||||
}
|
||||
|
@ -129,6 +129,10 @@ export PW_PLUGINS_PATH="${PORT_WINE_TMP_PATH}/plugins${PW_PLUGINS_VER}"
|
||||
export PW_GUI_ICON_PATH="${PORT_WINE_PATH}/data/img/gui"
|
||||
export PW_GUI_THEMES_PATH="${PORT_WINE_PATH}/data/themes"
|
||||
|
||||
if [[ $(gsettings get org.gnome.desktop.interface color-scheme) == "'prefer-dark'" ]]
|
||||
then export PW_DESKTOP_THEME="dark"
|
||||
fi
|
||||
|
||||
. "${PORT_SCRIPTS_PATH}"/lang
|
||||
|
||||
export urlg="https://linux-gaming.ru/portproton/"
|
||||
|
Loading…
Reference in New Issue
Block a user