File indexing completed on 2024-05-05 05:35:16

0001 #ifndef oxygen_h
0002 #define oxygen_h
0003 
0004 /*
0005  * SPDX-FileCopyrightText: 2014 Hugo Pereira Da Costa <hugo.pereira@free.fr>
0006  * SPDX-FileCopyrightText: 2015 David Edmundson <davidedmundson@kde.org>
0007  *
0008  * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0009  */
0010 
0011 #include "oxygensettings.h"
0012 
0013 #include <QList>
0014 #include <QSharedPointer>
0015 
0016 namespace Oxygen
0017 {
0018 //* convenience typedefs
0019 using InternalSettingsPtr = QSharedPointer<InternalSettings>;
0020 using InternalSettingsList = QList<InternalSettingsPtr>;
0021 using InternalSettingsListIterator = QListIterator<InternalSettingsPtr>;
0022 
0023 //* metrics
0024 enum Metrics {
0025 
0026     //* corner radius (pixels)
0027     Frame_FrameRadius = 3,
0028 
0029     //* titlebar metrics, in units of small spacing
0030     TitleBar_TopMargin = 2,
0031     TitleBar_BottomMargin = 2,
0032     TitleBar_SideMargin = 2,
0033     TitleBar_ButtonSpacing = 2,
0034 
0035     // shadow dimensions (pixels)
0036     Shadow_Size = 16,
0037     Shadow_Offset = 6,
0038     Shadow_Overlap = 2,
0039 
0040     /** the extra edge
0041     needed to outline active window title
0042     */
0043     TitleBar_OutlineMargin = 4
0044 
0045 };
0046 
0047 //* exception
0048 enum ExceptionMask { None = 0, BorderSize = 1 << 4 };
0049 }
0050 
0051 #endif