File indexing completed on 2024-05-12 13:30:14
0001 #ifndef breeze_h 0002 #define breeze_h 0003 0004 /* 0005 * SPDX-FileCopyrightText: 2014 Hugo Pereira Da Costa <hugo.pereira@free.fr> 0006 * 0007 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0008 */ 0009 0010 #include "breezesettings.h" 0011 0012 #include <QList> 0013 #include <QSharedPointer> 0014 0015 namespace Breeze 0016 { 0017 //* convenience typedefs 0018 using InternalSettingsPtr = QSharedPointer<InternalSettings>; 0019 using InternalSettingsList = QList<InternalSettingsPtr>; 0020 using InternalSettingsListIterator = QListIterator<InternalSettingsPtr>; 0021 0022 //* metrics 0023 namespace Metrics 0024 { 0025 //* corner radius, in units of small spacing 0026 static constexpr qreal Frame_FrameRadius = 2; 0027 0028 //* titlebar metrics, in units of small spacing 0029 static constexpr int TitleBar_TopMargin = 2; 0030 static constexpr int TitleBar_BottomMargin = 2; 0031 static constexpr int TitleBar_SideMargin = 2; 0032 static constexpr int TitleBar_ButtonSpacing = 2; 0033 0034 // shadow dimensions (pixels) 0035 static constexpr int Shadow_Overlap = 3; 0036 0037 } 0038 0039 //* standard pen widths 0040 namespace PenWidth 0041 { 0042 /* Using 1 instead of slightly more than 1 causes symbols drawn with 0043 * pen strokes to look skewed. The exact amount added does not matter 0044 * as long as it isn't too visible. 0045 */ 0046 // The standard pen stroke width for symbols. 0047 static constexpr qreal Symbol = 1.01; 0048 } 0049 0050 //* exception 0051 enum ExceptionMask { 0052 None = 0, 0053 BorderSize = 1 << 4, 0054 }; 0055 } 0056 0057 #endif