Commit Graph
59 Commits
Author SHA1 Message Date
Kovid Goyal 5d3ac649ba Fix #3017 2020-10-08 17:39:44 +05:30
Kovid Goyal 31d9f663fc Simplify border drawing code 2020-08-30 14:05:43 +05:30
Kovid Goyal 7074f9f776 Grid layout: Improve rendering of borders when using minimal borders 2020-08-29 15:53:14 +05:30
Kovid Goyal 01c0e8da93 Tall and Fat layouts ported to new groups API 2020-05-12 22:43:54 +05:30
Kovid Goyal d4a4ee386f Fix minimal borders in grid layout 2020-04-19 17:58:35 +05:30
Kovid Goyal c69b8870d2 Allow individually setting margins and padding for each edge (left, right, top, bottom) 2020-04-19 09:36:26 +05:30
Kovid Goyal 382c31ddf2 Use a stub rather than TYPE_CHECKING 2020-03-15 13:27:40 +05:30
Kovid Goyal 5414dc398e Correct a few type definitions in layout.py 2020-03-13 16:21:36 +05:30
Kovid Goyal 917559f883 more typing work 2020-03-13 16:13:26 +05:30
Kovid Goyal ac2c21e046 more typing work 2020-03-09 16:13:00 +05:30
Kovid Goyal a4cc10c41b More typing work 2020-03-04 06:10:57 +05:30
Kovid Goyal c1abb7038d Fix border/margin/padding sizes not being recalculated on DPI change
Fixes #2346
Fixes #2347
2020-02-09 08:31:09 +05:30
Kovid Goyal 75c47a8659 Proper fix for not drawing blank rects when bg image is present 2020-02-02 20:20:45 +05:30
Kovid Goyal 5b4e0ed483 Fix #2331
Some leftover unused code from the bg image merge
2020-02-02 20:09:17 +05:30
Kovid Goyal 1bc5d7038d Merge branch 'bgimage' of https://github.com/ctrlcctrlv/kitty 2020-01-31 07:58:55 +05:30
Fredrick Brennan 9f364209af Add background_image 2020-01-30 17:23:42 +08:00
Kovid Goyal f7eef3f456 Minimal borders for the splits layout 2020-01-30 06:12:45 +05:30
Kovid Goyal f722b898b0 Remove hard-coded restriction on drawing borders when only a single window is present
Instead this is controlled by the active layout. Fixes #1750
2019-06-26 19:35:49 +05:30
Luflosi d7dd9c295b Use more specific exception
I think it's better to use `ImportError` here instead of the much more generic `Exception`.
2019-06-06 17:45:37 +02:00
Luflosi a792c94ccf Use python3 shebang for all python scripts
Fixes #1624.
Use python3 shebang for all python scripts as python still defaults to python2 on many systems.
2019-05-20 14:44:24 +02:00
Kovid Goyal fcedc9f5c3 Allow setting :opt:active_border_color to `none` to not draw a border around the active window
Fixes #805
Fixes #1491
2019-03-24 10:04:32 +05:30
Kovid Goyal 18804efb7e Let the layout control which window borders are drawn 2018-07-06 17:14:25 +05:30
Kovid Goyal a5d27196ea Remove unnecessary code 2018-07-06 13:17:51 +05:30
Kovid Goyal 5af6d88ffb Support drawing individual border widths 2018-07-06 13:17:51 +05:30
Kovid Goyal 12be438dea ... 2018-07-05 12:30:11 +05:30
Kovid Goyal 00092db6ad Use an enum for border colors 2018-07-05 11:52:32 +05:30
Kovid Goyal 523aadaa3b Refactor font group handling
Allow kitty to manage multiple groups of fonts with different cell
sizes. Will eventually allow kitty to have different font sizes/dpi per
OSWindow
2018-05-27 12:37:05 +05:30
Kovid Goyal f2afba2ef4 Change the window border color if a bell occurs in an unfocused window. Can be disabled by setting the bell_border_color to be the same as the inactive_border_color. 2018-05-02 22:02:45 +05:30
Kovid Goyal f25ecedcab Always set the padding color to current window background 2018-02-20 09:43:59 +05:30
Kovid Goyal 2913c1aedc Change the color of the padding and margins to match the current background color of the window, when only a single window is visible.
Fixes #323
2018-02-20 09:43:49 +05:30
Kovid Goyal c7e1a12eb6 Have pt_to_px use global_state instead of get_dpi
DRYer and reduces code size
2017-12-14 18:04:10 +05:30
Kovid Goyal ab604fb149 more bugs 2017-12-01 12:15:33 +05:30
Kovid Goyal f8c7a7a690 more bug fixes 2017-12-01 12:15:33 +05:30
Kovid Goyal 0ec793e8bc Finish porting of borders and layout 2017-12-01 12:15:32 +05:30
Kovid Goyal 49be779982 Port drawing of borders 2017-12-01 12:15:32 +05:30
Kovid Goyal 44f456089b Migrate the cell program 2017-09-15 10:45:22 +05:30
Kovid Goyal 2fff6e1cb9 Directly rende r borders instead of going through the active tab 2017-09-15 10:45:22 +05:30
Kovid Goyal 634cd53454 Remove unused code 2017-09-15 10:45:21 +05:30
Kovid Goyal 2a24199c90 Migrate the borders program 2017-09-15 10:45:21 +05:30
Kovid Goyal 5905216f96 Use instanced rendering for the borders 2017-09-15 10:45:21 +05:30
Kovid Goyal 9c184c794a Migrate function to compile programs 2017-09-15 10:45:20 +05:30
Kovid Goyal 0365828a5b Remove all python threading related code 2017-09-15 10:45:10 +05:30
Kovid Goyal acdeaaeda5 Move the border shaders into their own files 2017-09-15 10:45:08 +05:30
Kovid Goyal a44e3a3a50 Ensure line numbers reported by the GLSL compiler are correct 2017-09-15 10:45:08 +05:30
Kovid Goyal e0e517d6ec Modify VAO API to allow using multiple buffers 2017-08-23 17:32:46 +05:30
Kovid Goyal 1c56de5605 Change default usage mode to GL_STREAM_DRAW 2017-08-22 18:10:28 +05:30
Kovid Goyal 03e0b9de04 Use vertex buffers instead of texture buffers
Apparently, integer samplers for textFetch() are broken on some macOS
Intel drivers. Fixes #101
2017-08-22 12:08:35 +05:30
Kovid Goyal 4364163ceb Use a single buffer for multiple vertex arrays 2017-08-22 07:59:51 +05:30
Kovid Goyal ffd9ec653d Allow programs to be used with multiple vertex array objects 2017-08-22 00:24:45 +05:30
Kovid Goyal afa767c3a8 Support vertex attrib divisors 2017-08-21 23:24:05 +05:30