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