File indexing completed on 2024-05-05 05:28:58

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 // Keep this value in sync with Bias_Default in
0038 // kstyle/breezemetrics.h
0039 static constexpr qreal Bias_Default = 0.20;
0040 }
0041 
0042 //* standard pen widths
0043 namespace PenWidth
0044 {
0045 /* Using 1 instead of slightly more than 1 causes symbols drawn with
0046  * pen strokes to look skewed. The exact amount added does not matter
0047  * as long as it isn't too visible.
0048  */
0049 // The standard pen stroke width for symbols.
0050 static constexpr qreal Symbol = 1.01;
0051 }
0052 
0053 //* exception
0054 enum ExceptionMask {
0055     None = 0,
0056     BorderSize = 1 << 4,
0057 };
0058 }