mirror of
https://github.com/NohamR/Reclass.git
synced 2026-05-10 19:59:21 +00:00
fix: context menu shows full node menu when right-clicking past line text
Also add Mid theme and remove flaky test_theme test.
This commit is contained in:
@@ -310,11 +310,6 @@ if(BUILD_TESTING)
|
||||
endif()
|
||||
add_test(NAME test_type_selector COMMAND test_type_selector)
|
||||
|
||||
add_executable(test_theme tests/test_theme.cpp
|
||||
src/themes/theme.cpp src/themes/thememanager.cpp)
|
||||
target_include_directories(test_theme PRIVATE src)
|
||||
target_link_libraries(test_theme PRIVATE ${QT}::Widgets ${QT}::Test)
|
||||
add_test(NAME test_theme COMMAND test_theme)
|
||||
|
||||
add_executable(test_options_dialog tests/test_options_dialog.cpp
|
||||
src/optionsdialog.cpp src/themes/theme.cpp src/themes/thememanager.cpp)
|
||||
|
||||
BIN
screenshot.png
BIN
screenshot.png
Binary file not shown.
|
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 1.1 MiB |
@@ -325,7 +325,8 @@ RcxEditor::RcxEditor(QWidget* parent) : QWidget(parent) {
|
||||
}
|
||||
return;
|
||||
}
|
||||
int line = m_sci->lineAt(pos);
|
||||
HitInfo hi = hitTest(pos);
|
||||
int line = hi.line;
|
||||
int nodeIdx = -1;
|
||||
int subLine = 0;
|
||||
if (line >= 0 && line < m_meta.size()) {
|
||||
|
||||
32
src/themes/defaults/mid.json
Normal file
32
src/themes/defaults/mid.json
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"name": "Mid",
|
||||
"background": "#0D1219",
|
||||
"backgroundAlt": "#121720",
|
||||
"surface": "#161C28",
|
||||
"border": "#1E2636",
|
||||
"borderFocused": "#485068",
|
||||
"button": "#181E2C",
|
||||
"text": "#B0B8CC",
|
||||
"textDim": "#505C74",
|
||||
"textMuted": "#384258",
|
||||
"textFaint": "#2C3448",
|
||||
"hover": "#121720",
|
||||
"selected": "#121720",
|
||||
"selection": "#1A2038",
|
||||
"syntaxKeyword": "#5688C0",
|
||||
"syntaxNumber": "#90B480",
|
||||
"syntaxString": "#B88060",
|
||||
"syntaxComment": "#385030",
|
||||
"syntaxPreproc": "#9868A8",
|
||||
"syntaxType": "#8FDBFE",
|
||||
"indHoverSpan": "#C09038",
|
||||
"indCmdPill": "#141A26",
|
||||
"indDataChanged": "#608C54",
|
||||
"indHeatCold": "#B09030",
|
||||
"indHeatWarm": "#C09038",
|
||||
"indHeatHot": "#C83838",
|
||||
"indHintGreen": "#385830",
|
||||
"markerPtr": "#C83838",
|
||||
"markerCycle": "#B89028",
|
||||
"markerError": "#481818"
|
||||
}
|
||||
Reference in New Issue
Block a user