Commit 4e060f82 authored by Mikhail Tergoev's avatar Mikhail Tergoev

change recomend dpi and added 80 dpi

parent bde9d70a
...@@ -3,6 +3,7 @@ You can help us in the development of the project on the website: https://linux- ...@@ -3,6 +3,7 @@ You can help us in the development of the project on the website: https://linux-
Changelog: Changelog:
###Scripts version 2371### / Date: 08.11.2024 / Download update size: 4 megabytes ###Scripts version 2371### / Date: 08.11.2024 / Download update size: 4 megabytes
* added auto-detection of application scaling, with the ability to change it in the global PP settings (thanks to Htylol)
* FUTEX2 is disabled by default (breaks some games) * FUTEX2 is disabled by default (breaks some games)
* added auto-installation of the Saturn game (thanks to Dervart) * added auto-installation of the Saturn game (thanks to Dervart)
* added the ability to select a dark/light theme in the global PP settings (thanks to Htylol) * added the ability to select a dark/light theme in the global PP settings (thanks to Htylol)
......
...@@ -2,7 +2,11 @@ ...@@ -2,7 +2,11 @@
----------------------------------------- -----------------------------------------
История изменений: История изменений:
* множество оптимизаций скриптов (спасибо Htylol)
* уменьшено рекомендуемое масштабирование
###Scripts version 2371### / Дата: 08.11.2024 / Размер скачиваемого обновления: 4 мегабайта ###Scripts version 2371### / Дата: 08.11.2024 / Размер скачиваемого обновления: 4 мегабайта
* добавлено автоопределение масштабирования приложений, с возможностью изменения в глобальных настройках PP (спасибо Htylol)
* FUTEX2 отключен по умолчанию (ломает работу некоторых игр) * FUTEX2 отключен по умолчанию (ломает работу некоторых игр)
* добавлена автоустановка игры Saturn (спасибо Dervart) * добавлена автоустановка игры Saturn (спасибо Dervart)
* добавлена возможность выбора темной/светлой темы в глобальных настройках PP (спасибо Htylol) * добавлена возможность выбора темной/светлой темы в глобальных настройках PP (спасибо Htylol)
......
...@@ -1369,7 +1369,7 @@ recommend_dpi () { ...@@ -1369,7 +1369,7 @@ recommend_dpi () {
echo "disabled" echo "disabled"
return 1 return 1
fi fi
local dpi=$(( height / 10 )) local dpi=$(( height / 11 ))
(( dpi < 96 )) && local dpi="96" (( dpi < 96 )) && local dpi="96"
echo "$dpi" echo "$dpi"
} }
...@@ -5730,7 +5730,7 @@ gui_userconf () { ...@@ -5730,7 +5730,7 @@ gui_userconf () {
"${pw_yad}" --plug=$KEY_USERCONF_GUI --tabnum="2" --form --columns=1 --separator="%" --homogeneous-row \ "${pw_yad}" --plug=$KEY_USERCONF_GUI --tabnum="2" --form --columns=1 --separator="%" --homogeneous-row \
--gui-type-text="$PANED_GUI_TYPE_TEXT_DOWN" --gui-type-layout="$PANED_GUI_TYPE_LAYOUT_DOWN" \ --gui-type-text="$PANED_GUI_TYPE_TEXT_DOWN" --gui-type-layout="$PANED_GUI_TYPE_LAYOUT_DOWN" \
--field="${translations[Choose a graphics card to run the game]}!${translations[Select which video card will be used to run the game (used for all running games and programs in PortProton)]} :CB" "$(combobox_fix --disabled "$GPU_VAR" "$GET_GPU_NAMES")" \ --field="${translations[Choose a graphics card to run the game]}!${translations[Select which video card will be used to run the game (used for all running games and programs in PortProton)]} :CB" "$(combobox_fix --disabled "$GPU_VAR" "$GET_GPU_NAMES")" \
--field="${translations[Force dpi]}!${translations[Here you can set forced dpi for applications wine]} :CB" "$(combobox_fix --disabled "$YAD_DPI_VAR" "${translations[Recommended value]}!96!120!144!168!192!216!240!264!288")" \ --field="${translations[Force dpi]}!${translations[Here you can set forced dpi for applications wine]} :CB" "$(combobox_fix --disabled "$YAD_DPI_VAR" "${translations[Recommended value]}!80!96!120!144!168!192!216!240")" \
--field="${translations[Choice wine audio driver]}!${translations[Fixes sound popling if choice alsa]} :CB" "$(combobox_fix --disabled "$SOUND_DRIVER_VAR" "alsa!oss!pulse")" \ --field="${translations[Choice wine audio driver]}!${translations[Fixes sound popling if choice alsa]} :CB" "$(combobox_fix --disabled "$SOUND_DRIVER_VAR" "alsa!oss!pulse")" \
--field="${translations[Select PortProton theme]}!${translations[Allows you to select a theme for PortProton]} :CB" "$(combobox_fix "$GUI_THEME" "${translations[default]}!${translations[compact]}!${translations[classic]}")" \ --field="${translations[Select PortProton theme]}!${translations[Allows you to select a theme for PortProton]} :CB" "$(combobox_fix "$GUI_THEME" "${translations[default]}!${translations[compact]}!${translations[classic]}")" \
--field="${translations[Select gtk theme]}!${translations[Allows you to select a theme for GTK.]} :CB" "$(combobox_fix "$GTK_THEME" "${YAD_GTK_THEME}Adwaita:${translations[light]}!Adwaita:${translations[dark]}!${translations[default]}")" \ --field="${translations[Select gtk theme]}!${translations[Allows you to select a theme for GTK.]} :CB" "$(combobox_fix "$GTK_THEME" "${YAD_GTK_THEME}Adwaita:${translations[light]}!Adwaita:${translations[dark]}!${translations[default]}")" \
......
...@@ -245,10 +245,11 @@ if [[ ! $PW_GUI_START =~ (PANED|NOTEBOOK) ]] ; then ...@@ -245,10 +245,11 @@ if [[ ! $PW_GUI_START =~ (PANED|NOTEBOOK) ]] ; then
fi fi
# TODO:fixes_after_update # TODO:fixes_after_update
if fixes_after_update "2371: Reset PW_WINE_DPI_VALUE in user.conf" ; then if fixes_after_update "2372: Reset PW_WINE_DPI_VALUE in user.conf" ; then
sed -i '/export PW_WINE_DPI_VALUE=/d' "$USER_CONF" sed -i '/export PW_WINE_DPI_VALUE=/d' "$USER_CONF"
unset PW_WINE_DPI_VALUE unset PW_WINE_DPI_VALUE
fi fi
# choose wine dpi default # choose wine dpi default
if [[ -z $PW_WINE_DPI_VALUE ]] ; then if [[ -z $PW_WINE_DPI_VALUE ]] ; then
echo 'export PW_WINE_DPI_VALUE="recommended"' >> "$USER_CONF" echo 'export PW_WINE_DPI_VALUE="recommended"' >> "$USER_CONF"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment