damiensellier / CtrlrX

CtlrX is an alternative fork of Roman Kubiak's Ctrlr. This project is ONLY aimed at delivering updates, a wiki, documentations, tutorials or anything that the community cannot share on the original Ctrlr github due to credential restrictions.
BSD 3-Clause "New" or "Revised" License
16 stars 3 forks source link

Improving Lua Method Editor settings #21

Open damiensellier opened 3 weeks ago

damiensellier commented 3 weeks ago

Improving Lua Method Editor settings must be improved to set up custom elements colours.

Capture d’écran, le 2024-06-14 à 14 12 34

Ask for @dobo365 mods and merge code : Code Editor Preferences

dobo365 commented 2 days ago

Renamed Settings to Preferences to be closer to other programs. Adapted popup with extra properties. Use of color dialog popup. Better look (see picture above)

Code editor Preferences.zip

Source - UIcomponents - CtrlrLua - MethodEditor - CtrlrLuaMethodCodeEditorSettings.cpp and .h CtrlrLuaMethodCodeEditor.cpp CtrlrLuaMethodEditor.cpp CtrlrIDs.h: add

    DECLARE_ID (luaMethodEditorLineNumbersBgColour);
    DECLARE_ID (luaMethodEditorLineNumbersColour);

Still to do: secure that the selected colors are kept through sessions.