KWin
Loading...
Searching...
No Matches
src
plugins
kdecorations
aurorae
src
auroraeshared.h
Go to the documentation of this file.
1
/*
2
SPDX-FileCopyrightText: 2009, 2010, 2012 Martin Gräßlin <mgraesslin@kde.org>
3
4
SPDX-License-Identifier: GPL-2.0-or-later
5
*/
6
7
#pragma once
8
9
#include <QString>
10
#include <QVariantList>
11
12
namespace
Aurorae
13
{
14
15
/*
16
* KDecoration2::BorderSize doesn't map to the indices used for the Aurorae SVG Button Sizes.
17
* BorderSize defines None and NoSideBorder as index 0 and 1. These do not make sense for Button
18
* Size, thus we need to perform a mapping between the enum value and the config value.
19
*/
20
static
const
int
s_indexMapper = 2;
21
22
static
QString findTheme(
const
QVariantList &args)
23
{
24
if
(args.isEmpty()) {
25
return
QString();
26
}
27
const
auto
map = args.first().toMap();
28
auto
it = map.constFind(QStringLiteral(
"theme"
));
29
if
(it == map.constEnd()) {
30
return
QString();
31
}
32
return
it.value().toString();
33
}
34
35
}
Aurorae
Definition
aurorae.h:29
Generated on Sat Feb 17 2024 01:42:09 for KWin by
1.10.0