Browse Source
This commit introduce color palettes from Primer and make use of it in various widgets. Primer system is chosen due to well designed and is highly rated on Github (in terms of Github stars). https://primer.style/ PR #17798.adaptive-webui-19844
Chocobo1
2 years ago
committed by
GitHub
5 changed files with 134 additions and 17 deletions
@ -0,0 +1,72 @@ |
|||||||
|
/*
|
||||||
|
* Bittorrent Client using Qt and libtorrent. |
||||||
|
* Copyright (C) 2022 Mike Tzou (Chocobo1) |
||||||
|
* |
||||||
|
* This program is free software; you can redistribute it and/or |
||||||
|
* modify it under the terms of the GNU General Public License |
||||||
|
* as published by the Free Software Foundation; either version 2 |
||||||
|
* of the License, or (at your option) any later version. |
||||||
|
* |
||||||
|
* This program is distributed in the hope that it will be useful, |
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||||
|
* GNU General Public License for more details. |
||||||
|
* |
||||||
|
* You should have received a copy of the GNU General Public License |
||||||
|
* along with this program; if not, write to the Free Software |
||||||
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
||||||
|
* |
||||||
|
* In addition, as a special exception, the copyright holders give permission to |
||||||
|
* link this program with the OpenSSL project's "OpenSSL" library (or with |
||||||
|
* modified versions of it that use the same license as the "OpenSSL" library), |
||||||
|
* and distribute the linked executables. You must obey the GNU General Public |
||||||
|
* License in all respects for all of the code used other than "OpenSSL". If you |
||||||
|
* modify file(s), you may extend this exception to your version of the file(s), |
||||||
|
* but you are not obligated to do so. If you do not wish to do so, delete this |
||||||
|
* exception statement from your version. |
||||||
|
*/ |
||||||
|
|
||||||
|
#pragma once |
||||||
|
|
||||||
|
namespace Color |
||||||
|
{ |
||||||
|
/*
|
||||||
|
* Documentation: https://primer.style/primitives/colors
|
||||||
|
* Repository: https://github.com/primer/primitives
|
||||||
|
* Primer Primitives v7.9 |
||||||
|
*/ |
||||||
|
namespace Primer |
||||||
|
{ |
||||||
|
namespace Dark |
||||||
|
{ |
||||||
|
// Functional variables
|
||||||
|
inline const QColor accentEmphasis = 0x1f6feb; |
||||||
|
inline const QColor accentFg = 0x58a6ff; |
||||||
|
inline const QColor dangerFg = 0xf85149; |
||||||
|
inline const QColor fgMuted = 0x8b949e; |
||||||
|
inline const QColor fgSubtle = 0x6e7681; |
||||||
|
inline const QColor severeFg = 0xdb6d28; |
||||||
|
inline const QColor successEmphasis = 0x238636; |
||||||
|
inline const QColor successFg = 0x1a7f37; |
||||||
|
// Scale variables
|
||||||
|
inline const QColor scaleBlue4 = 0x388bfd; |
||||||
|
inline const QColor scaleYellow6 = 0x845306; |
||||||
|
} |
||||||
|
|
||||||
|
namespace Light |
||||||
|
{ |
||||||
|
// Functional variables
|
||||||
|
inline const QColor accentEmphasis = 0x0969da; |
||||||
|
inline const QColor accentFg = 0x0969da; |
||||||
|
inline const QColor dangerFg = 0xcf222e; |
||||||
|
inline const QColor fgMuted = 0x57606a; |
||||||
|
inline const QColor fgSubtle = 0x6e7781; |
||||||
|
inline const QColor severeFg = 0xbc4c00; |
||||||
|
inline const QColor successEmphasis = 0x2da44e; |
||||||
|
inline const QColor successFg = 0x1a7f37; |
||||||
|
// Scale variables
|
||||||
|
inline const QColor scaleBlue4 = 0x218bff; |
||||||
|
inline const QColor scaleYellow6 = 0x7d4e00; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue