mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 23:18:58 +02:00
43 lines
1.5 KiB
Plaintext
43 lines
1.5 KiB
Plaintext
From 534e4fdbae238c2834f43f9438390ef8f2efea14 Mon Sep 17 00:00:00 2001
|
|
From: Schrijvers Luc <begasus@gmail.com>
|
|
Date: Mon, 23 Dec 2024 07:46:09 +0100
|
|
Subject: Use Haiku's icon/color schemes
|
|
|
|
|
|
diff --git a/apps/lib/kateapp.cpp b/apps/lib/kateapp.cpp
|
|
index cd392fa..3b11b43 100644
|
|
--- a/apps/lib/kateapp.cpp
|
|
+++ b/apps/lib/kateapp.cpp
|
|
@@ -158,9 +158,11 @@ void KateApp::initPreApplicationCreation(bool detach)
|
|
* trigger initialisation of proper icon theme
|
|
* see https://invent.kde.org/frameworks/kiconthemes/-/merge_requests/136
|
|
*/
|
|
+#if !defined(Q_OS_HAIKU)
|
|
#if KICONTHEMES_VERSION >= QT_VERSION_CHECK(6, 3, 0)
|
|
KIconTheme::initTheme();
|
|
#endif
|
|
+#endif
|
|
|
|
#if defined(Q_OS_WIN)
|
|
// try to attach to console for terminal detection and output
|
|
diff --git a/apps/lib/katemainwindow.cpp b/apps/lib/katemainwindow.cpp
|
|
index 1ee0a2d..cf4de7c 100644
|
|
--- a/apps/lib/katemainwindow.cpp
|
|
+++ b/apps/lib/katemainwindow.cpp
|
|
@@ -280,10 +280,12 @@ void KateMainWindow::setupImportantActions()
|
|
#endif
|
|
|
|
// Load themes
|
|
+#if !defined(Q_OS_HAIKU)
|
|
KColorSchemeManager *manager = new KColorSchemeManager(this);
|
|
auto *colorSelectionMenu = KColorSchemeMenu::createMenu(manager, this);
|
|
colorSelectionMenu->menu()->setTitle(i18n("&Window Color Scheme"));
|
|
ac->addAction(QStringLiteral("colorscheme_menu"), colorSelectionMenu);
|
|
+#endif
|
|
|
|
QAction *a = ac->addAction(KStandardAction::Back, QStringLiteral("view_prev_tab"));
|
|
a->setText(i18n("&Previous Tab"));
|
|
--
|
|
2.45.2
|
|
|