Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PortWINE
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mikhail Tergoev
PortWINE
Commits
a5727d66
Commit
a5727d66
authored
Apr 11, 2024
by
Boria138
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added changing the tray icon depending on the theme variant
parent
1b81250f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
10 deletions
+27
-10
portproton_tray_dark.png
data_from_portwine/img/gui/portproton_tray_dark.png
+0
-0
portproton_tray_light.png
data_from_portwine/img/gui/portproton_tray_light.png
+0
-0
functions_helper
data_from_portwine/scripts/functions_helper
+23
-10
start.sh
data_from_portwine/scripts/start.sh
+4
-0
No files found.
data_from_portwine/img/gui/portproton_tray_dark.png
0 → 100644
View file @
a5727d66
1.23 KB
data_from_portwine/img/gui/portproton_tray.png
→
data_from_portwine/img/gui/portproton_tray
_light
.png
View file @
a5727d66
File moved
data_from_portwine/scripts/functions_helper
View file @
a5727d66
...
...
@@ -2484,16 +2484,29 @@ pw_tray_icon () {
}
export
-f
tray_icon_click_exit
# --window-icon="$PW_GUI_ICON_PATH/portproton_tray.png" \
"
${
pw_yad_v13_0
}
"
--notification
--no-middle
\
--image
=
"
$PW_GUI_ICON_PATH
/portproton_tray.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 &
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_light.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 &
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
}
...
...
data_from_portwine/scripts/start.sh
View file @
a5727d66
...
...
@@ -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/"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment