KTextAddons

textautogeneratecolorsandmessageviewstyle.h
1/*
2 SPDX-FileCopyrightText: 2025 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <KColorScheme>
10#include <QObject>
11
12namespace TextAutogenerateText
13{
14class TextAutogenerateColorsAndMessageViewStyle : public QObject
15{
17public:
18 static TextAutogenerateColorsAndMessageViewStyle &self();
19 TextAutogenerateColorsAndMessageViewStyle();
20
21 [[nodiscard]] KColorScheme schemeView() const;
22
23 [[nodiscard]] KColorScheme schemeWindow() const;
24
26 void needToUpdateColors();
27
28protected:
29 [[nodiscard]] bool eventFilter(QObject *obj, QEvent *event) override;
30
31private:
32 void regenerateColorScheme();
33 KColorScheme mSchemeView;
34 KColorScheme mSchemeWindow;
35};
36}
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
virtual bool event(QEvent *e)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri May 2 2025 12:06:03 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.