| Age | Commit message (Collapse) | Author |
|
Improvements to the Lua doc comments that allows improved
generation of the Lua API reference using the gendocs plugin.
|
|
* Keep DEFAULT_SCALE updated even if autodetect is set to false.
* Adjustments to redundant default scale on scale plugin.
|
|
Since new renwindow api (that allows initializing windows directly Lua) the main window creation was moved to core.init but, the scale detection code was still been performed before. This meant that loading the default system style was using the incorrect scale causing issues that would only be resolved by manually re-scaling the interface.
Tried to wrongly fix the issue by delegating the responsibility to the scale plugin but that wasn't the correct solution (didn't notice what explained on first paragraph until later). Now we defer style loading until main window is created and the default system scale properly detected, this ensures that the correct scale is set before performing any style calculations that rely on it.
Now besides updating scale on the displaychanged event it also updates it when the window is resized, but we limited the amount of scale checks on resize to prevent crashes on X11.
Finally, updated system.get_scale documentation.
|
|
Now `ctrl+shift+mousewheel[up|down]` or `ctrl+shift+[-|=|0]` can be
used to only zoom the code of the editor. The scale mode was removed
and scaling with `ctr+mousewheel` and friends will always change
scale of entire interface.
|
|
* Fix scaling logic regressions
Changes to restore better scale behaviour on SDL renderer (and
even software renderer) which broke with previous code to improve
font loading performance and font scaling.
Should improve situation reported on #34
* Disabled renderer by default for macOS
* Always return 1 on system.get_scale if renderer is on
* Reverted view current scale
* Initialize emptyview huge icon at instantiation for proper scale
* Overall improvements to scale plugin and changes to settings ui options
|
|
|
|
|
|
* Restore horizontal scroll position after scale change
* Consider `View` horizontal size when restoring horizontal scroll
This is needed because `View:get_h_scrollable_size` includes the
horizontal size, while `View.scroll.x` doesn't.
|
|
|
|
|
|
* Allow passing font options to renderer.font:copy().
* Added renderer.font:get_path()
* Reintroduced set_size() for more faster font size changes
* Swapped copy wiht set_size on scale plugin for better performance
* Use code_font:copy() instead of renderer.font.load() on language_md to
properly match user font now that font options are supported on copy.
* Added new changes to renderer docs
|
|
|
|
|
|
|
|
|
|
|
|
configs can be set anywhere, even if we don't know the plugin beforehand.
|
|
|
|
|
|
Remove Font Renderer + CP Replace + libagg
|
|
|
|
Close #539.
|
|
|
|
|
|
Close #539.
|
|
|
|
|
|
|
|
|
|
|
|
If the user manually set the desired scale by calling scale.set(1.60)
the scale_level was not set accordingly which meant that later doing
a Scale:Increase/Decrease command yielded incorrect scale amount.
|
|
|
|
* Retrieve scale plugin from lite-plugins
* New implementation of scale plugin and font C API
Introduce two new C API functions, renderer.font.get_size and set_size
respectively to get the font size and to set the size to a new value.
Using these functions we don't need to know the name of the font but
we can just change their size.
Adapt the scale plugin to use the new C API function with minor adaptations
in the logic.
Use smaller step to scale fonts.
Rename font_desc_free function, previous name was misleading as only the cached
resources are freed.
* Add contextmenu plugin from takase
From https://github.com/takase1121/lite-contextmenu
Adapted to show font scaling commands and find/replace commands.
i# testing.lua
* Fix the cursor flickering with contextmenu
To avoid flickering of the cursor when using the context menu
we add a new function `core.request_cursor` that just take note
of the cursor requested.
The cursor will be actually changed only in root_view:draw() method
only when all the drawing operations are done. This means the cursor
will be changed only once per frame and only the most recent cursor
change request will take effect.
* Remove unneeded scale plugin return functions
|