aboutsummaryrefslogtreecommitdiff
path: root/style.c
Commit message (Collapse)AuthorAge
* Make newline a style delimiter as well so they can cross multiple linesnicm2021-08-12
| | | | for readability.
* Add an "absolute-centre" alignment to use the centre of the total spacenicm2021-03-11
| | | | instead of only the available space. From Magnus Gross in GitHub issue 2578.
* Add a customize mode where keys and options may be browsed and changed,nicm2020-05-16
| | | | | includes adding a brief description of each option. Bound to "C" by default.
* Drop having a separate type for style options and make them all strings,nicm2020-05-16
| | | | | | | | | | | | | | | | | which allows formats to be expanded. Any styles without a '#{' are still validated when they are set but any with a '#{' are not. Formats are not expanded usefully in many cases yet, that will be changed later. To make this work, a few other changes: - set-option -a with a style option automatically appends a ",". - OSC 10 and 11 don't set the window-style option anymore, instead the fg and bg are stored in the pane struct and act as the defaults that can be overridden by window-style. - status-fg and -bg now override status-style instead of trying to keep them in sync.
* Use a grid cell not a style for the pane style.nicm2020-05-16
|
* Add an attribute for ACS.nicm2020-05-16
|
* Add push-default and pop-default in styles to change the default coloursnicm2019-09-15
| | | | | | and attributes and use them to restore the previous behaviour of window-status-style being the default for window-status-format in the status line. From John Drouhard in GitHub issue 1912.
* Correctly clear underscore colour in grid_get_cell1, also fix structnicm2019-07-06
| | | | | grid_cell to avoid padding. Fixes increased memory use reported by Suraj N Kurapati.
* Add a "fill" style attribute to clear the entire format drawing area innicm2019-07-01
| | | | a colour, GitHub issue 1815.
* Add support for underscore colours with Setulc capability, mostly fromnicm2019-06-27
| | | | Kai Moschcau.
* Fix some indentation and dead assignments.nicm2019-05-12
|
* Fix some warnings, from Thomas Adam.nicm2019-04-05
|
* Extend the #[] style syntax and use that together with previous formatnicm2019-03-18
| | | | | | | | | | | | | | | | | | | | changes to allow the status line to be entirely configured with a single option. Now that it is possible to configure their content, enable the existing code that lets the status line be multiple lines in height. The status option can now take a value of 2, 3, 4 or 5 (as well as the previous on or off) to configure more than one line. The new status-format array option configures the format of each line, the default just references the existing status-* options, although some of the more obscure status options may be eliminated in time. Additions to the #[] syntax are: "align" to specify alignment (left, centre, right), "list" for the window list and "range" to configure ranges of text for the mouse bindings. The "align" keyword can also be used to specify alignment of entries in tree mode and the pane status lines.
* Remove some unnecessary temporary variables and be much less strictnicm2019-03-14
| | | | about spacing in style_parse.
* A little tidying in style_parse.nicm2019-03-14
|
* Add a wrapper (struct style) around styles rather than using thenicm2019-03-14
| | | | grid_cell directly. There will be some non-cell members soon.
* Add support for the strikethrough attribute (SGR 9), using the new smxxnicm2017-03-22
| | | | | terminfo capability. This means there are now nine attribute bits, so anything above 0xff uses an extended cell.
* Major tidy up and rework of options tree and set-option/show-optionsnicm2017-01-15
| | | | | | | | commands this pushes more of the code into options.c and ties it more closely to the options table rather than having an unnecessary split. Also add support for array options (will be used later). Only (intentional) user visible change is that show-options output is now passed through vis(3) with VIS_DQ so quotes are escaped.
* options_get_style return const too.nicm2017-01-13
|
* Simplify appending to string options.nicm2017-01-12
|
* Instead of representing colours in several different forms with variousnicm2016-07-15
| | | | | | cell flags, convert to use an int with flags marking 256 or RGB colours in the top byte (except in cells, which we don't want to make any bigger). From Brad Town.
* I no longer use my SourceForge address so replace it.nicm2016-01-19
|
* When the active pane changes, redraw panes if the style hasnicm2015-09-14
| | | | changed. From Cam Hutchison.
* Style spacing nits.nicm2015-05-07
|
* Fix setting old-style window -fg/-bg/-attr options that aren't global.nicm2015-04-15
|
* When given an invalid style, don't set the option to the default. Fixnicm2015-02-18
| | | | | from J Raynor. Also make style_parse not alter the grid_cell when it fails.
* Tidy up some includes.nicm2014-10-20
|
* Handle colour 8 properly in the 256 colour palette, from Timothy Allen.nicm2014-05-08
|
* Fix -fg/-bg/-style with 256 colour terminals.nicm2014-02-22
|
* Allow replacing each of the many sets of separate foo-{fg,bg,attr}nicm2014-01-28
options with a single foo-style option. For example: set -g status-fg yellow set -g status-bg red set -g status-attr blink Becomes: set -g status-style fg=yellow,bg=red,blink The -a flag to set can be used to add to rather than replace a style. So: set -g status-bg red Becomes: set -ag status-style bg=red Currently this is fully backwards compatible (all *-{fg,bg,attr} options remain) but the plan is to deprecate them over time. From Tiago Cunha.