X-Loop: help-debbugs@HIDDEN Subject: bug#64695: 29.0.92; xwidget webkit dark mode support or set all settings from elisp Resent-From: Daniel Nagy <danielnagy@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 18 Jul 2023 07:20:02 +0000 Resent-Message-ID: <handler.64695.B.168966475331964 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 64695 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 64695 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.168966475331964 (code B ref -1); Tue, 18 Jul 2023 07:20:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 Jul 2023 07:19:13 +0000 Received: from localhost ([127.0.0.1]:51407 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qLezH-0008JS-U1 for submit <at> debbugs.gnu.org; Tue, 18 Jul 2023 03:19:13 -0400 Received: from lists.gnu.org ([2001:470:142::17]:59018) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <danielnagy@HIDDEN>) id 1qLUvb-0008ES-FW for submit <at> debbugs.gnu.org; Mon, 17 Jul 2023 16:34:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <danielnagy@HIDDEN>) id 1qLUvV-0002NM-RV for bug-gnu-emacs@HIDDEN; Mon, 17 Jul 2023 16:34:37 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <danielnagy@HIDDEN>) id 1qLUvP-0003Go-IB for bug-gnu-emacs@HIDDEN; Mon, 17 Jul 2023 16:34:37 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 4B670240028 for <bug-gnu-emacs@HIDDEN>; Mon, 17 Jul 2023 22:34:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1689626068; bh=4WM4iCSKE8Q7aPgXogl9YX2VU+PR0/Y1c6eIZGo9qOg=; h=From:To:Subject:Date:Message-ID:MIME-Version:From; b=L3t33N7bkFOLMlLCcm+qCbpKbzlQxRgoI4XPPMyQDW3bfFW8EvtFGvRTYsYKTkFwD oEHyWSudKwOtEccMEyZqXNnZXiHpKozWSfwFLhorj3FCw7vwyuOSAyaxnqUtlukfoh lgxhK8VxfNhmAbBinrzJTmbeF+OJCLHnrGMDsHlozGGTUvjmYm+DtwDewYyY3ZQgUQ qyykSmz5KexYSeuvpb1xF2Hl9gNPHVq8azH6n8nk3bHGEYWp8dTIdlGazLAmA/RUIG bOaHgY5h9zYUot5bouxSiLSMl4Cgj20VvIRBNvHdzNPwHq4ItjN1GbYbUt84fI/Mwo Zqe/PUBsJfkAg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4R4Yhz6RJwz6tx6 for <bug-gnu-emacs@HIDDEN>; Mon, 17 Jul 2023 22:34:27 +0200 (CEST) From: Daniel Nagy <danielnagy@HIDDEN> Date: Mon, 17 Jul 2023 20:33:22 +0000 Message-ID: <87edl6gtv1.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=danielnagy@HIDDEN; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Mailman-Approved-At: Tue, 18 Jul 2023 03:19:11 -0400 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.0 (/) Hello, This is a feature request. Can xwidget webkit support the toggling of dark mode? This is done by setting the boolean value of the gtk setting "gtk-application-prefer-dark-theme". Better yet would be to allow to set all kinds of gtk settings via elisp if this is somehow possible. A good example of how dark mode can be set, can be seen in the surf program of the suckless project: https://git.suckless.org/surf/commit/1f5b8f3bd1f37d4d3dc45d21285f34ef4752dbaa.html More info on the gtk setting: https://docs.gtk.org/gtk3/property.Settings.gtk-application-prefer-dark-theme.html Internally, this enables this css media query, to allow websites to adapt to this user decision. https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme Not all websites make use of this media query, but to test it out you can check this previous link from MDN. It should turn darker if the gtk setting is enabled correctly. The file, that would most likely to be changed is `src/xwidget.c`. Thank you, In GNU Emacs 29.0.92 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.16.0) Windowing system distributor 'The X.Org Foundation', version 11.0.12101008 System Description: NixOS 23.11 (Tapir) Configured using: 'configure --prefix=/nix/store/m4wxxn3yblqsdlswa7k6rxsimyla4gca-emacs-gtk3-29.0.92 --disable-build-details --with-modules --with-x-toolkit=gtk3 --with-xft --with-cairo --with-native-compilation --with-tree-sitter --with-xinput2 --with-xwidgets' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM XWIDGETS GTK3 ZLIB Important settings: value of $EMACSLOADPATH: value of $EMACSNATIVELOADPATH: /nix/store/ax4hv2192br3c62wqilp71w2q0m5psrm-emacs-packages-deps/share/emacs/native-lisp:: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix -- Daniel Nagy
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Daniel Nagy <danielnagy@HIDDEN> Subject: bug#64695: Acknowledgement (29.0.92; xwidget webkit dark mode support or set all settings from elisp) Message-ID: <handler.64695.B.168966475331964.ack <at> debbugs.gnu.org> References: <87edl6gtv1.fsf@HIDDEN> X-Gnu-PR-Message: ack 64695 X-Gnu-PR-Package: emacs Reply-To: 64695 <at> debbugs.gnu.org Date: Tue, 18 Jul 2023 07:20:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 64695 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 64695: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D64695 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
Received: (at control) by debbugs.gnu.org; 4 Sep 2023 08:20:05 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 04 04:20:04 2023 Received: from localhost ([127.0.0.1]:48254 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qd4oW-0004zP-L5 for submit <at> debbugs.gnu.org; Mon, 04 Sep 2023 04:20:04 -0400 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]:55458) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>) id 1qd4oR-0004yL-Tr for control <at> debbugs.gnu.org; Mon, 04 Sep 2023 04:20:03 -0400 Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-500c63c9625so1912400e87.2 for <control <at> debbugs.gnu.org>; Mon, 04 Sep 2023 01:20:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693815594; x=1694420394; darn=debbugs.gnu.org; h=to:subject:message-id:date:mime-version:from:from:to:cc:subject :date:message-id:reply-to; bh=9FxyhYiBVIYFHzN00F4Pkdi49l7Xlma/RDzMKmA22mk=; b=oZg6je5E/8/MbIQiOdjYSz7Qf6+g9E3UTxTg2Z02rjt9KyBzbl3k3mXgALx3S+nRS1 qz0mnowYZ5n9vLSvSJ6pUshk7ExBL8NObIVSg6/Bhv8R2YdEkeeynBC+fFLE1MrqDOLs VpMoqEzw3vUa67hr8VVymokvkVJfyR8KoChJY0XyXynVmCzYiT42/umPISJqTboyvwVI 3Op+7r3o/lMMdBzuAW/m2W0rsqQoZiFRUZMZ8pN/LR7wXslPoRGOcCWR3zr6Nldy4v0+ iubUjv8deJOzL+CyP2G+8Gj00K4WC8jhQTnpvm/0YUcsd8f0QjX5RAhR8PNqkMFwN/FQ ZjZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693815594; x=1694420394; h=to:subject:message-id:date:mime-version:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=9FxyhYiBVIYFHzN00F4Pkdi49l7Xlma/RDzMKmA22mk=; b=DsxwqWoBNkrbvIZq1PmCYG1AfFtG8TUWt+EeLgZ9zIBLMineLvt4eokEEExPcQ01Wl 6J8NgnXrOJR3QZAPTSz9AtGXnaTXoxJOzWnYX+SGDMsPhLE8IuparUlXUtKhZpAFovfe NNZV4JPxnCh6Pybw68GnrtS4j4WpnGfMyElIWUwHSllbkwBiTwLAqvDoByHkOdxivVls 7iq1Xogm6BbMdOZlVdilSwu03+V72imPKb4fbbNoOdENm6p83NdgNCKf3pzcMvSAPbyO CjbZIAH+UNTAxwQF9zXX8VNLwTHCSRbp+zsAxBTpCF/LSJqPoKmc3QfPhOGmhxl0ltkh WBhA== X-Gm-Message-State: AOJu0Yy74Re8yhMtHKgQ3QnSxQyisUi4SKAwK+Sb/yToLC4XeTfyP8yo ZINWJD5EXtGPZqifsmExRCqHHoGM+I7cTcmjDvRrP81VdFA= X-Google-Smtp-Source: AGHT+IGJDvT91ikBDO2Xc78Vib1+qLju9pJgBwWdfDczTwsux1opu98THD+QOsKkwwem8ShV7BbfE6B77FySHeB9t9k= X-Received: by 2002:a05:6512:e9f:b0:4fd:c84f:30c9 with SMTP id bi31-20020a0565120e9f00b004fdc84f30c9mr7065993lfb.47.1693815594171; Mon, 04 Sep 2023 01:19:54 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 4 Sep 2023 01:19:53 -0700 From: Stefan Kangas <stefankangas@HIDDEN> MIME-Version: 1.0 Date: Mon, 4 Sep 2023 01:19:53 -0700 Message-ID: <CADwFkmktSna+-Uxg_CnA39LwU6=wprePQNUwxG9CxDuKniuQqg@HIDDEN> Subject: control message for bug #64695 To: control <at> debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) severity 64695 wishlist quit
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.