diff --git a/meson.build b/meson.build index e6ca45c..b19b81e 100644 --- a/meson.build +++ b/meson.build @@ -42,6 +42,7 @@ unstable_protocols = { 'xdg-output': ['v1'], 'xdg-shell': ['v5', 'v6'], 'xwayland-keyboard-grab': ['v1'], + 'xdg-decoration-theme': ['v1'], } staging_protocols = { diff --git a/unstable/xdg-decoration-theme/README b/unstable/xdg-decoration-theme/README new file mode 100644 index 0000000..70a09dc --- /dev/null +++ b/unstable/xdg-decoration-theme/README @@ -0,0 +1,5 @@ +xdg_decoration_theme protocol + +Maintainers: +YaoBing Xiao (@zzxyb) + diff --git a/unstable/xdg-decoration-theme/xdg-decoration-theme-unstable-v1.xml b/unstable/xdg-decoration-theme/xdg-decoration-theme-unstable-v1.xml new file mode 100644 index 0000000..072581e --- /dev/null +++ b/unstable/xdg-decoration-theme/xdg-decoration-theme-unstable-v1.xml @@ -0,0 +1,81 @@ + + + + Copyright © 2025 YaoBing Xiao + + Permission is hereby granted, free of charge, to any person obtaining a + copy of this software and associated documentation files (the "Software"), + to deal in the Software without restriction, including without limitation + the rights to use, copy, modify, merge, publish, distribute, sublicense, + and/or sell copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice (including the next + paragraph) shall be included in all copies or substantial portions of the + Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. + + + + + This global interface allows clients to inform the compositor of their + current light or dark theme preference. + + The compositor may use this information to render matching decorations + consistent with the client's theme. + + + + + + + + + Create a new decoration theme object associated with a given + xdg_toplevel. The theme object is used to notify the compositor when the + client changes between light and dark modes. + + + + + + + + + The toplevel theme object allows a client to notify the compositor of its + active color theme. + + The compositor should not enforce the client's theme, but may adjust + decoration colors to match the client's preference. + + + + + + + + + + + + + + Notify the compositor that the client is currently using the specified + theme mode. The compositor may use this information to adjust the color + of decorations for this toplevel. + + This request can be sent any time, such as when the user toggles between + light and dark modes. + + + + + +