Remove what only the Qt frontend used

- The theme/font request globals (gThemeChange*, gFont*Request,
  gFontChangePending, gCurrentFont*, gFontDialogRequested): only Qt
  read them.
- The font-picker-toggle command: it only set gFontDialogRequested, so
  it did nothing in kge or kte.
- The terminal :font and :font-size recorded requests nothing read and
  answered "Font requested"; they now say fonts are not available in
  the terminal.
- kte::DisplayColumns, added for Qt's drawing and now unused.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-09-24 14:41:12 -07:00
co-authored by Claude Opus 5.5
parent 501245da3d
commit b1576c4228
5 changed files with 5 additions and 131 deletions
-14
View File
@@ -8,20 +8,6 @@
#include "Highlight.h"
// Cross-frontend theme change request hook: declared here, defined in Command.cc
namespace kte {
extern bool gThemeChangePending;
extern std::string gThemeChangeRequest; // raw user-provided name
// Font change request hooks and current font state (set by command handlers)
extern bool gFontChangePending;
extern std::string gFontFamilyRequest; // requested family (case-insensitive)
extern float gFontSizeRequest; // <= 0 means keep size
extern std::string gCurrentFontFamily; // last applied family
extern float gCurrentFontSize; // last applied size
// Request to show a visual font dialog (set by command handler)
extern bool gFontDialogRequested;
}
#include <imgui.h>
#include <vector>
#include <memory>