Jackie Li
6a2ee9253b
set_options() in layout tests
2025-10-14 19:43:07 +01:00
Jackie Li
6db3441e29
respect draw_window_borders_for_single_window=yes in lgd.draw_minimal_borders
2025-10-14 19:23:35 +01:00
Jackie Li
05810722be
use draw_window_borders_for_single_window
...
single window + has focus -> active border
single window + no focus -> inactive border
multiple window + regardless of focus -> active border
a) option set:
1) Single *visible* window in the layout - always draw a border
border color = active if os_window is focused else inactive
2) multiple visible windows in the layout - no change in existing
behavior, in particular draw_minimal_borders is respected as before.
b) option unset - no changes from present behavior
option default to false.
2025-10-14 18:39:23 +01:00
Jackie Li
09e16adf8b
Add draw_borders_when_focused option
...
Adds a new configuration option `draw_borders_when_focused` that allows
borders to be drawn around windows when the OS window is focused,
regardless of the layout or number of windows.
This is useful for:
- Seeing which terminal window has focus in layouts like stack that
normally don't show borders
- Showing borders even when there's only a single window
- Providing visual feedback about OS window focus state
When enabled, borders use the active_border_color when the OS window is
focused and inactive_border_color when unfocused. This behavior only
applies when the option is enabled, preserving existing behavior by
default.
The implementation:
- Adds the draw_borders_when_focused config option (default: no)
- Modifies border drawing logic to check OS window focus state
- Triggers border redraw when OS window focus changes
- Only affects behavior when the option is explicitly enabled
2025-10-13 20:07:47 +01:00
Kovid Goyal
220099a3ed
Merge branch 'dependabot/github_actions/actions-1893dd32ff' of https://github.com/kovidgoyal/kitty
2025-10-13 09:17:04 +05:30
dependabot[bot]
6a6296a90f
Bump github/codeql-action from 3 to 4 in the actions group
...
Bumps the actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action ).
Updates `github/codeql-action` from 3 to 4
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/github/codeql-action/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-version: '4'
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: actions
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-10-13 03:41:50 +00:00
Kovid Goyal
e1b2ce91ff
Merge branch 'dependabot/go_modules/all-go-deps-1f98792d99' of https://github.com/kovidgoyal/kitty
2025-10-13 08:43:09 +05:30
dependabot[bot]
11905993ca
Bump the all-go-deps group with 3 updates
...
Bumps the all-go-deps group with 3 updates: [golang.org/x/image](https://github.com/golang/image ), [golang.org/x/sys](https://github.com/golang/sys ) and [golang.org/x/text](https://github.com/golang/text ).
Updates `golang.org/x/image` from 0.31.0 to 0.32.0
- [Commits](https://github.com/golang/image/compare/v0.31.0...v0.32.0 )
Updates `golang.org/x/sys` from 0.36.0 to 0.37.0
- [Commits](https://github.com/golang/sys/compare/v0.36.0...v0.37.0 )
Updates `golang.org/x/text` from 0.29.0 to 0.30.0
- [Release notes](https://github.com/golang/text/releases )
- [Commits](https://github.com/golang/text/compare/v0.29.0...v0.30.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-version: 0.32.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: all-go-deps
- dependency-name: golang.org/x/sys
dependency-version: 0.37.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: all-go-deps
- dependency-name: golang.org/x/text
dependency-version: 0.30.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: all-go-deps
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-10-13 03:05:24 +00:00
Kovid Goyal
a072a6fd2a
Dont dump commands when --dump-bytes alone is specified
...
dumping commands flushes and therefore is expensive and might change
timing significantly.
2025-10-13 04:16:38 +05:30
Kovid Goyal
b627d2e4ab
Move error handling code into its own library
2025-10-12 13:51:16 +05:30
Kovid Goyal
6ea4bfa433
Fix #9100
2025-10-12 09:00:13 +05:30
Kovid Goyal
471831831b
move more imaging code into the imaging module
2025-10-12 08:29:30 +05:30
Kovid Goyal
fc7087c962
Merge branch 'fix-text_rendering_strategy-ref' of https://github.com/jwoos/kitty
2025-10-12 07:02:51 +05:30
Jun Woo Shin
abd220fefc
Fix references to text_rendering_strategy
2025-10-11 15:01:18 -04:00
Kovid Goyal
44df0c85c4
Mark the netPBM image types as decodable
2025-10-11 13:43:00 +05:30
Kovid Goyal
2ff307ce8c
Merge branch 'simplify-rounded-corner' of https://github.com/alex-huff/kitty
2025-10-11 13:26:43 +05:30
Kovid Goyal
a1168be6c7
...
2025-10-11 13:25:46 +05:30
Kovid Goyal
0bfcffbaed
Fix spurious CVE in dep detection
2025-10-11 13:23:33 +05:30
Kovid Goyal
4c0c5c01f2
Bump version of imaging
2025-10-11 13:17:15 +05:30
alex-huff
14100a0274
decorations: simplify rounded corner
2025-10-11 02:29:11 -05:00
Kovid Goyal
3ba6c3f4b9
macOS: Handle dropping of file promises into kitty in addition to file paths
...
Fixes #9084
2025-10-11 11:02:51 +05:30
Kovid Goyal
ef15aa3f51
We only clamp to the unit interval
2025-10-11 10:23:35 +05:30
Kovid Goyal
c397fc4301
Fix continuous redraw when disable_ligatures set to cursor and tab bar visible
...
Fixes #9071
2025-10-11 10:14:36 +05:30
Kovid Goyal
6d66c87077
Cleanup previous PR
...
Fixes #9091
2025-10-11 09:16:35 +05:30
bea4dev
001c627f52
reimpl SDF rounded corner
2025-10-11 09:15:05 +05:30
Kovid Goyal
758acbc4d5
Bump python for CVE
2025-10-10 18:55:57 +05:30
Kovid Goyal
8fb40af284
Fix #9093
2025-10-10 17:33:55 +05:30
Kovid Goyal
c40ff94395
Fix error when trying to serialize a tab without any windows
2025-10-10 12:39:09 +05:30
Kovid Goyal
29e80f2c1b
Remove unused code
2025-10-10 08:23:22 +05:30
Kovid Goyal
f852ebc3f3
Merge branch 'fix-panel-toggle-fullscreen' of https://github.com/alex-huff/kitty
2025-10-10 07:12:12 +05:30
alex-huff
1967fd9dd5
panel: implemented --edge=none on X11
2025-10-09 17:18:40 -05:00
alex-huff
3ca953d98e
panel: allow toggling fullscreen regardless of edge
2025-10-09 16:46:44 -05:00
Kovid Goyal
dc0bcbcec3
reset a few more image fields
2025-10-09 22:29:36 +05:30
Kovid Goyal
55f1ab3843
Merge branch 'fix-panel-toggle-fullscreen' of https://github.com/alex-huff/kitty
2025-10-09 21:43:18 +05:30
Kovid Goyal
a2604f6958
Fix animated images sometimes not auto playing or auto playing at the wrong start frame if the same image id is used for a subsequent image
2025-10-09 21:42:37 +05:30
alex-huff
59371ded7e
panel: restore left and right margin when leaving fullscreen
2025-10-09 10:06:55 -05:00
Kovid Goyal
b543956638
...
2025-10-09 20:29:15 +05:30
Kovid Goyal
ec7da87905
An endpoint to develop resizing code
2025-10-09 20:09:15 +05:30
Kovid Goyal
436ab9a95a
Add a convenient entry point to test and work on the image serialization code
2025-10-09 19:26:05 +05:30
Kovid Goyal
35093d2105
Fix frame origins not be de-serialized
2025-10-09 19:22:22 +05:30
Kovid Goyal
9212c08638
Faster conversion of plaette to NRGB for opaque colors
2025-10-09 16:57:28 +05:30
Kovid Goyal
2dea3087b3
Faster is_opaque implementation for paletted images
2025-10-09 16:52:13 +05:30
Kovid Goyal
c48ed15007
...
2025-10-09 16:12:39 +05:30
Kovid Goyal
a0f6152aee
Ensure num_cols is never zero
2025-10-09 16:05:13 +05:30
Kovid Goyal
ef8079eb27
Clear python error when using read_from_disk_cache_simple
2025-10-09 15:45:03 +05:30
Kovid Goyal
ed33e64101
Ensure placement is transmitted after data
2025-10-09 15:35:57 +05:30
Kovid Goyal
167b254d97
DRYer
2025-10-09 15:23:52 +05:30
Kovid Goyal
dc90771780
Add a small top margin above the image preview
2025-10-09 15:16:17 +05:30
Kovid Goyal
4cdedc422e
Add modified date to image preview
2025-10-09 15:13:45 +05:30
Kovid Goyal
127459012a
Fix incorrect alpha values returned by NRGB color model
2025-10-09 11:39:39 +05:30