2024-02-17 22:51:19 +00:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2014 Hugo Pereira Da Costa <hugo.pereira@free.fr>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
|
|
|
*/
|
|
|
|
|
2024-08-09 01:20:25 +00:00
|
|
|
#pragma once
|
|
|
|
|
2024-02-17 22:51:19 +00:00
|
|
|
#include "breezesettings.h"
|
|
|
|
|
|
|
|
#include <QList>
|
|
|
|
#include <QSharedPointer>
|
|
|
|
|
|
|
|
namespace Breeze
|
|
|
|
{
|
|
|
|
//* convenience typedefs
|
|
|
|
using InternalSettingsPtr = QSharedPointer<InternalSettings>;
|
|
|
|
using InternalSettingsList = QList<InternalSettingsPtr>;
|
|
|
|
using InternalSettingsListIterator = QListIterator<InternalSettingsPtr>;
|
|
|
|
|
|
|
|
//* metrics
|
|
|
|
namespace Metrics
|
|
|
|
{
|
|
|
|
//* corner radius, in units of small spacing
|
|
|
|
static constexpr qreal Frame_FrameRadius = 2;
|
|
|
|
|
|
|
|
//* titlebar metrics, in units of small spacing
|
|
|
|
static constexpr int TitleBar_TopMargin = 2;
|
|
|
|
static constexpr int TitleBar_BottomMargin = 2;
|
|
|
|
static constexpr int TitleBar_SideMargin = 2;
|
|
|
|
static constexpr int TitleBar_ButtonSpacing = 2;
|
|
|
|
|
|
|
|
// shadow dimensions (pixels)
|
|
|
|
static constexpr int Shadow_Overlap = 3;
|
|
|
|
|
2024-08-09 01:20:25 +00:00
|
|
|
// frame intensities (called bias in KColorUtilities::Mix)
|
|
|
|
static constexpr qreal Bias_Default = 0.25;
|
2024-02-17 22:51:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//* standard pen widths
|
|
|
|
namespace PenWidth
|
|
|
|
{
|
|
|
|
/* Using 1 instead of slightly more than 1 causes symbols drawn with
|
|
|
|
* pen strokes to look skewed. The exact amount added does not matter
|
|
|
|
* as long as it isn't too visible.
|
|
|
|
*/
|
|
|
|
// The standard pen stroke width for symbols.
|
|
|
|
static constexpr qreal Symbol = 1.01;
|
|
|
|
}
|
|
|
|
|
|
|
|
//* exception
|
|
|
|
enum ExceptionMask {
|
|
|
|
None = 0,
|
|
|
|
BorderSize = 1 << 4,
|
|
|
|
};
|
|
|
|
}
|