Commit 64ad89df authored by Ignacio Sancho's avatar Ignacio Sancho
Browse files

produccion

No related merge requests found
Pipeline #2260 passed with stages
in 11 seconds
Showing with 28 additions and 9 deletions
+28 -9
......@@ -6,7 +6,7 @@ Requiere de un canal creado para ello: night-mode que se genera en el skel del u
## TODO
* ...
* Modo automático se podría añadir pero habría que bajar el periodo del bucle para que se actualice correctamente el menú derecho
## Usuarios/Equipos Destinatarios
......
vx-dga-x-apariencia-claro-oscuro (1.0-1) bionic; urgency=medium
* Notificación para gestión de tema claro/oscuro
* Modo automático comentado por defecto
-- Ignacio Sancho <sannacho@gmail.com> Wed, 26 Apr 2023 14:22:36 +0200
......@@ -94,7 +94,7 @@ function set_config()
xfconf-query --channel 'night-mode' --property "/$1" --set "$3" --create --type "$2"
}
TEXT="$(get_config 'text' 'string' '<span size="xx-large">&#x262F;</span>')"
AUTOMATIC="$(get_config 'automatic' 'string' 'no')"
SUNRISE="$(get_config 'sunrise' 'string' '7:30')"
SUNSET="$(get_config 'sunset' 'string' '18:00')"
GTK_LIGHT="$(get_config 'Light/GtkTheme' 'string' $(xfconf-query --channel xsettings --property /Net/ThemeName))"
......
......@@ -41,15 +41,33 @@ salir() {
}
export -f salir
set_menu_notification() {
#USERHOME=$(vx-home-usuario-grafico)
# get_config()
# {
# result="$(xfconf-query --channel 'night-mode' --property /$1 2> /dev/null)"
# if ! [ "$result" ]; then
# result="$3"
# xfconf-query --channel 'night-mode' --property "/$1" --set "$result" --create --type "$2"
# fi
# echo "$result"
# }
# AUTOMATICO="$(get_config 'automatic' 'string' 'no')"
# function set_config()
# {
# xfconf-query --channel 'night-mode' --property "/$1" --set "$3" --create --type "$2"
# }
# export -f set_config
MENU="Configurar:bash -c 'xfce4-settings-editor':configuration|Salir:bash -c 'salir $MAINPID':gtk-quit"
# if [ -d "${DIR}" ] && systemctl --user is-active -q onedrive.service; then
# MENU="${DIR}:bash -c 'pcmanfm ${DIR}':system-file-manager|Salir:bash -c 'salir $MAINPID':gtk-quit"
set_menu_notification() {
# if [[ "$(get_config 'automatic')" == "yes" ]]; then
# # Aplicamos el tema que corresponde al ser automático
# vx-apariencia-claro-oscuro
# MENU="Configurar:bash -c 'xfce4-settings-editor':configuration|Modo Auto:bash -c 'set_config automatic string no':gtk-ok|Salir:bash -c 'salir $MAINPID':gtk-quit"
# else
# MENU="Salir:bash -c 'salir $MAINPID':gtk-quit"
# MENU="Configurar:bash -c 'xfce4-settings-editor':configuration|Modo Manual:bash -c 'set_config automatic string yes':gtk-ok|Salir:bash -c 'salir $MAINPID':gtk-quit"
# fi
MENU="Configurar:bash -c 'xfce4-settings-editor':configuration|Salir:bash -c 'salir $MAINPID':gtk-quit"
echo "menu:$MENU"
}
......
<svg id="Layer_1" enable-background="new 0 0 512 512" height="512" viewBox="0 0 512 512" width="512" xmlns="http://www.w3.org/2000/svg"><g><circle cx="256" cy="256" fill="#2d3c5a" r="256"/><path d="m512 256c0 141.286-114.688 256-256 256s-256-114.714-256-256z" fill="#212d49"/><path d="m256 153.6c56.576 0 102.4 45.849 102.4 102.4s-45.824 102.4-102.4 102.4z" fill="#f0f1f3"/><path d="m256 153.6c-56.491 0-102.4 45.884-102.4 102.4s45.909 102.4 102.4 102.4v69.69c0 8.833-7.59 15.699-16.391 14.938-96.005-8.304-171.342-88.87-171.342-187.028s75.337-178.724 171.342-187.028c8.801-.761 16.391 6.105 16.391 14.938z" fill="#f0f1f3"/><g fill="#dfe3ec"><path d="m153.6 256c0 56.516 45.909 102.4 102.4 102.4v69.69c0 8.833-7.59 15.699-16.391 14.938-96.005-8.304-171.342-88.87-171.342-187.028z"/><path d="m256 358.4c56.576 0 102.4-45.849 102.4-102.4h-102.4z"/></g></g></svg>
\ No newline at end of file
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.com/svgjs" width="512" height="512" x="0" y="0" viewBox="0 0 32 32" style="enable-background:new 0 0 512 512" xml:space="preserve" class=""><g><g data-name="Layer 51"><path d="M16 7.5a8.5 8.5 0 1 0 8.5 8.5A8.506 8.506 0 0 0 16 7.5zM16 23a1 1 0 0 1-1-1V10a1 1 0 0 1 1-1 7 7 0 0 1 0 14z" fill="#bac3cf" data-original="#000000" class=""></path><path d="M16 2a14 14 0 1 0 14 14A14.015 14.015 0 0 0 16 2zm0 24.5A10.5 10.5 0 1 1 26.5 16 10.512 10.512 0 0 1 16 26.5z" fill="#bac3cf" data-original="#000000" class=""></path></g></g></svg>
\ No newline at end of file
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