mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
Allows us to apply custom style overrides. Initially, this just improves the appearance of disabled icons on dark themes. The default Qt style method of displaying disabled icons only works well on light backgrounds, on dark backgrounds it makes the icons stand out due to the extreme contrast between the background and the lightened icons. Replace with a custom approach which desaturates icons and reduces their opacity. This arguably also improves their appearance on light themes too (I think so).
42 lines
1.6 KiB
Plaintext
42 lines
1.6 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/qgsproxystyle.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
class QgsProxyStyle : QProxyStyle
|
|
{
|
|
%Docstring
|
|
A QProxyStyle subclass which correctly sets the base style to match
|
|
the QGIS application style, and handles object lifetime by correctly
|
|
parenting to a parent widget.
|
|
|
|
.. versionadded:: 3.2
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsproxystyle.h"
|
|
%End
|
|
public:
|
|
|
|
explicit QgsProxyStyle( QWidget *parent /Transfer/ );
|
|
%Docstring
|
|
Constructor for QgsProxyStyle. Ownership is transferred to the ``parent`` widget.
|
|
|
|
The base style for the QProxyStyle will be set to match the current QGIS application style.
|
|
%End
|
|
};
|
|
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/qgsproxystyle.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|