Keith Simmons
6b96f79bb1
move window files into main window directory rather than being window wrapper
3 years ago
Keith Simmons
4982c2615e
only set background opacity if window transparency is not 1.0
3 years ago
LoipesMas
ef8a95a91d
Fix transparency for floating windows
3 years ago
LoipesMas
5906bf58c3
Cleanup
3 years ago
LoipesMas
06113d603e
Fix separators and tabline not disappearing
3 years ago
LoipesMas
d4c9b7b850
Sort floating windows by position
3 years ago
LoipesMas
b8b9573168
Formatting
3 years ago
LoipesMas
1345eb396b
Draw default-color background as transparent
3 years ago
LoipesMas
b0dc9332c4
Make only root_canvas semi-transparent
3 years ago
LoipesMas
45ab1843b8
Draw floating text as opaque
...
I don't think anyone wants transparent text
3 years ago
LoipesMas
139e0da98d
Draw black background as transparent
3 years ago
LoipesMas
b68cf32006
Revert useless change
3 years ago
LoipesMas
42f74a3bbb
Transparency working again
3 years ago
LoipesMas
93b5c49ff7
Fix floating windows showing outside of neovide window
3 years ago
Keith Simmons
fb9c1de747
fix clippy and formatting
3 years ago
Keith Simmons
35f46ebb5f
adjust foreground clip to be looser in the x y plane
3 years ago
Keith Simmons
3cc0d5c173
rework draw commands to send whole line at once and draw background before foreground
3 years ago
Christian Clason
c3fe866bb9
refactor(font): conditional compilation on macos
...
Avoids
```
warning: unused variable: `points_per_inch`
--> src/renderer/fonts/font_options.rs:94:9
|
94 | let points_per_inch = 72.0;
| ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_points_per_inch`
|
= note: `#[warn(unused_variables)]` on by default
```
on macOS, which is innocuous but has been bugging me for a while.
3 years ago
Keith Simmons
3bba418c1c
refactor grid_renderer out of renderer and clean up window draw command handling
3 years ago
mforsb
768a589576
Remove rust-embed as a dependency
...
This is a rather heavy dependency that's easily replaceable using only
the standard library. This brings the number of dependencies down from
368 to 362 (on Linux).
3 years ago
Serg Tereshchenko
71e107d649
fix: Trigger grid resize after font change
3 years ago
Keith Simmons
400dbcabd3
remove global suffix on settings call
3 years ago
Serg Tereshchenko
0549540c13
style: apply cargo --fmt
3 years ago
partizan
9149c98292
Merge pull request #865 from neovide/refactor-grid-conv
...
Refactor grid conversions
3 years ago
Serg Tereshchenko
6d38f34f8b
refactor: Use paired values as tuples/Dimensions
...
Paired values, like width/height now using tuples and Dimensions.
`Dimensions` struct implements traits for multiplication and division,
which allows us to scale grid size to physical and back just by
multiplying `Dimensions` instead of each variable.
Also, added trait for multiplication (u64, u64) by Dimensions.
For the same purpose as above.
3 years ago
Keith Simmons
1e1bd45d45
swap feature flag to just be a setting instead
3 years ago
Serg Tereshchenko
a8c6e1707b
refactor: Refactor startup process to delay setting window size.
...
Setting initial window size moved into draw_frame, and called
after fonts are loaded. So initial window size matches requested
geometry.
This also fixes missing startup screen, as UiCommand::Resize is not
called on startup.
3 years ago
Keith Simmons
949e15f808
add debug renderer feature
3 years ago
Serg Tereshchenko
61fb07d7bf
style: Fix clippy warning
3 years ago
Lucas Miranda
0c1a7029e3
Fix to ensure provided gui font is valid ( #842 )
...
Providing a wrong font was causing neovide to retry every time to load an
inexistent font, instead just trying to load once at it's setup should
be enough
3 years ago
Serg Tereshchenko
5991117814
style(fonts): Removed redundant closure
...
(Thanks clippy)
3 years ago
partizan
e8354e1b23
Dynamic scale factor updates ( #817 )
...
* wip: dynamic scale factor updates
* refactor font options
* update font opts
* refacor scale factor updates
* cargo fmt
3 years ago
Serg Tereshchenko
42ff24518b
fix(macos): Fix scaling on mac-os
...
On MacOS points and pixels are the same.
3 years ago
Keith Simmons
cacde9ec9d
fix initial window positioning
3 years ago
partizan
a527c0ebb7
fix(fonts): Fix font scaling (points to pixels conversion) ( #814 )
...
Refs #387
3 years ago
Serg Tereshchenko
c870c46aa3
chore(renderer/fonts): Fix unused variable warning
3 years ago
Serg Tereshchenko
07c0349e4a
chore: Fixed formatting
3 years ago
partizan
43bab8404b
Refactor scaling code ( #793 )
...
* refactor(scaling): Refactor scaling code, scale only font size
* chore: Add debug logging for scale factor
* fix scaling for default font
3 years ago
Keith Simmons
80c57bb339
tweak vertical positioning ( #795 )
3 years ago
partizan
d2e33b87f2
Rename "bot" to "bottom" in WindowDrawCommand::Scroll ( #789 )
...
* chore(test): Fix function call
* refactor(WindowDrawCommand::Scroll): Rename bot to bottom
3 years ago
partizan
9f7207feb8
fix(window): Fix incorrect initial scaling ( #784 )
...
Also, replaced inverse scaling (like 1 / scaling) with natural scaling.
I think easier to work with natural scaling factor (like 1..2)
and multiplication, instead of inverse scaling factor and division.
Refs #771
3 years ago
Keith Simmons
73902a6c7a
formatting and clippy fixes
3 years ago
Keith Simmons
2fc74f83ca
enable bold/italic highlight styles
3 years ago
smolck
f99c21d971
feat(fonts): add support for :b and :i in guifont ( #769 )
...
Close #709 .
3 years ago
Keith Simmons
30f9bc9d59
minor clippy fixes
3 years ago
Keith Simmons
407a7e24a9
formatting fixes
3 years ago
Keith Simmons
3449cfda7a
port forward scrolling fix
3 years ago
Keith Simmons
1f699afad1
fix cursor disappearing glitch
3 years ago
Keith Simmons
59fa3ed2a9
rewrite the mouse handling to handle upstream bugs somewhat better. Still haven't found the crash yet
3 years ago
Keith Simmons
113a3f421c
clippy fixes
3 years ago