From 529611c662e7637167beb2f99d9e0b4d6a4646f8 Mon Sep 17 00:00:00 2001 From: Matthew Woehlke Date: Thu, 29 Nov 2007 17:13:15 +0000 Subject: [PATCH] Add AbilityAnnounceColors and AbilityColor* abilities to kwin decorations; this way clients can say what colors they support for the benifit of the color kcm (and anyone else that might need to know?) svn path=/trunk/KDE/kdebase/workspace/; revision=743015 --- clients/PORTING | 1 + lib/kdecoration.h | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/clients/PORTING b/clients/PORTING index c27e46cfad..6571d3000e 100644 --- a/clients/PORTING +++ b/clients/PORTING @@ -23,3 +23,4 @@ This document lists changed needed for porting KWin decoration clients from KDE3 use code similar to example in the documentation for KDecoration::drawbound() - KDecoration::animateMinimize() and KDecoration::helperShowHide() have been removed, animations are now implemented only by KWin's compositing code +- there are new AbilityColor* abilities you should add to supports() diff --git a/lib/kdecoration.h b/lib/kdecoration.h index 6d1ae0cbd4..909e457df0 100644 --- a/lib/kdecoration.h +++ b/lib/kdecoration.h @@ -152,7 +152,10 @@ public: */ enum Ability { + // announce AbilityAnnounceButtons = 0, ///< decoration supports AbilityButton* values (always use) + AbilityAnnounceColors = 1, ///< decoration supports AbilityColor* values (always use) + // buttons AbilityButtonMenu = 1000, ///< decoration supports the menu button AbilityButtonOnAllDesktops = 1001, ///< decoration supports the on all desktops button AbilityButtonSpacer = 1002, ///< decoration supports inserting spacers between buttons @@ -164,6 +167,15 @@ public: AbilityButtonBelowOthers = 1008, ///< decoration supports a below button AbilityButtonShade = 1009, ///< decoration supports a shade button AbilityButtonResize = 1010, ///< decoration supports a resize button + // colors + AbilityColorTitleBack = 2000, ///< decoration supports titlebar background color + AbilityColorTitleFore = 2001, ///< decoration supports titlebar foreground color + AbilityColorTitleBlend = 2002, ///< decoration supports second titlebar background color + AbilityColorFrame = 2010, ///< decoration supports frame color + AbilityColorHandle = 2011, ///< decoration supports resize handle color + AbilityColorButtonBack = 2020, ///< decoration supports button background color + AbilityColorButtonFore = 2021, ///< decoration supports button foreground color + // TODO colors for individual button types ABILITY_DUMMY = 10000000 };