Commit graph

75 commits

Author SHA1 Message Date
Dave Davenport
bb1fd3afd7 [DOC] Small fixes to rofi-theme manpage. 2022-04-07 21:02:55 +02:00
Dave Davenport
2cc21909f5 [DOC] Update rofi-theme with a small getting started. 2022-04-06 20:23:07 +02:00
Dave Davenport
62ebde525f [doc] Update drawings in rofi-theme 2022-04-06 00:04:30 +02:00
Dave Davenport
88a1d1cbf7 [Doc] Tweak rofi-theme manpage. 2022-04-05 22:21:13 +02:00
Dave Davenport
47d785758a
[listview] Allow settings of flow direction of elements (#1605)
* [Listview] Initial implementation for left to right packing.
* [Listview] fix movement in pack-left-to-right.
* Add element-next/prev keybinding and remap tab.
* [Listview] Change option name to 'flow' and use rofi orientation type.
* [Listview] Make listview work with reverse property.
* Update test for 2 new keybindings.

fixes: #1058
2022-03-07 20:37:58 +01:00
Dave Davenport
079c1dcd85 [Doc] Clearify enable/disable. 2022-03-04 08:53:22 +01:00
Dave Davenport
85c6545a43
Merge List and Array type into one. (#1572)
* Merge list and array into one.

* [Lexer] Only use string without " in list

* Some cleanups

* Cleanups based on feedback.
2022-01-25 09:57:59 +01:00
Jakub Jirutka
6e3feee179
Add support for setting tabs stops on textboxes (#1571)
* Document new array of values type

* Move WIDGET_PADDING_INIT from widget.c to widget-internal.h

* Refactor WIDGET_PADDING_INIT macro

* Add support for setting tab stops on textbox

This allows to emulate a multi-column layout inside the text boxes.

The implementation is kinda hackish due to the limitations of the theme
parser. The only property type that can contain multiple distance values
is Padding, so I used that.

* Use new array syntax for tab-stops
2022-01-24 22:20:41 +01:00
Dave Davenport
8817b6a602 [Doc] Add floor,ceil,round to manpage.
Fixes: #1569
2022-01-19 18:56:45 +01:00
Dave Davenport
5f7563dae3 Update cmdline separator and add to manpage. 2021-12-17 19:04:02 +01:00
Dave Davenport
e3860c89e8 [FileBrowser] Reduce number of re-allocs. 2021-10-12 10:34:47 +02:00
Dave Davenport
abe4d2d85e [Doc] Fix layout image. 2021-09-20 06:56:34 +02:00
Dave Davenport
ff022f8940 [DOC] Add default theme loading to rofi-theme manpage. 2021-09-12 19:59:36 +02:00
Dave Davenport
68e79b66a9 [Grammar] Add support for env();
Add support for `env(ENV,default)`.

Fixes: #1411
2021-09-01 21:27:25 +02:00
Dave Davenport
c8aa445371 [Doc] Add note highlight is only available on element-text. 2021-08-22 12:46:50 +02:00
a1346054
c62137f8ab
Simple maintenance improvements (#1370)
* rofi moved to libera.chat

* unify some theme headers and whitespace

* consistently use the same hashbang for bash

* improve obsolete way of testing equality

see https://github.com/koalaman/shellcheck/wiki/SC2268 for explanation

* use consistent function definitions in bash scripts

* remove duplicated author and fix whitespace

* quote all variables in scripts

fixes many warnings identified through shellcheck

* fix whitespace in scripts

* fix whitespace in non-source files

* fix spelling in non-source files

* fix whitespace and indentation in source files

* fix spelling in source files
2021-08-14 13:03:16 +02:00
Danny Colin
3309d20ce0
Speficy that horizontal/vertical align is a number between 0 and 1. (#1357) 2021-07-29 20:46:09 +02:00
Dave Davenport
c4a156fb89 [Icon] Add a squared option. 2021-07-14 17:29:38 +02:00
Dave Davenport
6f28a171ac
[DOC] Update rofi-theme(5) for github highlighting 2021-07-02 18:17:25 +02:00
Dave Davenport
a230f193fb [Doc] Update element drawing. 2021-07-02 18:09:41 +02:00
Dave Davenport
f5aa88acfd [Doc] Update rofi theme manpage with some examples and fixes. 2021-07-02 18:01:46 +02:00
Dave Davenport
0c304524fb [Icon|Button] Make action available on icon and use keyb name.
You can now bind a key-binding on mouse click to icons and buttons by setting
"action" property.

For example:

```css
icon-paste {
    expand: false;
    filename: "gtk-paste";
    size: 24;
    vertical-align: 0.5;
    action: "kb-primary-paste";
}
```
2021-06-30 14:12:09 +02:00
Dave Davenport
824b21b4fb [doc] small textual tweak 2021-06-15 20:10:04 +02:00
Dave Davenport
4c1a74e15e [Widget] Add scaling option to background-image. 2021-06-15 17:18:34 +02:00
Dave Davenport
828aaa231a [Theme] Add angle support to linear-gradient. 2021-06-14 16:04:15 +02:00
Dave Davenport
5c5428bd11 [Theme] Add direction support to linear-gradient. 2021-06-14 15:14:41 +02:00
Dave Davenport
7cf0385681 [Theme] Support multiple stops in linear-gradient
* Fix anchor dumping
* Fix image dumping
2021-06-13 22:57:35 +02:00
Dave Davenport
2c325b3f09 [Widget] Add initial support for background-image.
* Supports url("path") and linear-gradient(start,stop).
2021-06-13 20:50:25 +02:00
Dave Davenport
b86907ccab [Doc] Add font section to rofi-theme manpage. 2021-06-08 18:35:21 +02:00
Dave Davenport
2e9835892b [Doc] Remove small-caps from doc as it does not work. 2021-05-29 13:33:09 +02:00
TonCherAmi
dc28a97437
Add cursor property (#1313)
* Change mouse cursor on widget hover

Currently only listview element and editbox are supported.

* Add cursor property
2021-05-23 00:17:27 +02:00
Dave Davenport
46031bbee1 [rofi-theme] Update manpage with textbox::markup option. 2020-12-28 22:54:20 +01:00
a1346054
96c7ab0fff
Fix spelling (#1202) 2020-09-26 22:47:52 +02:00
Dave Davenport
7c331b130b [Calc] Add min/max operator support to calc()
Fixes: #1172
2020-09-14 20:34:39 +02:00
Dave Davenport
3499e1dad0 [Theme] First attempt at more cleanups and nested media support.
First throw at nested media support.

Issue: #1189
2020-09-13 15:11:12 +02:00
Dave Davenport
6ba878e44a [Lexer] Fix media parser. 2020-09-11 18:10:49 +02:00
Dave Davenport
d3ae324290 [Theme] update manpage with fix 2020-09-11 17:55:09 +02:00
Dave Davenport
bd332e7b7e [Doc] Add small (Extra) highlight section to rofi-theme 2020-09-06 11:59:41 +02:00
Dave Davenport
8c51b9ec3e [Doc] update rofi-theme(5) with mm size. 2020-06-09 22:57:02 +02:00
Dave Davenport
151547a99e
[Themes] add calc() support to distance in theme format. (#1105)
* Initial test to allow math in distances.

Support + and -
Needs spaces around + and -.

* [THEME] Fix printing theme with math in distance.

* [Theme] use calc() syntax.

* [Theme] Add * and /  to calc().

* [Theme] Fix the precedense ordering in parsing. Also avoid making copies.

* [Theme] Don't print unneeded ().

* [Theme] Add modulo to calc.
2020-04-24 19:54:08 +02:00
Dave Davenport
67b6c8bcc8 Update manpage and manpage build instructions 2020-04-20 11:27:06 +02:00
Dave Davenport
40c1476855 [Listview] Fix drawing issue 2019-12-29 20:33:34 +01:00
Dave Davenport
e6bed0e5d3 [Listview] Add support for showing the (keybindable) index.
fixes: #1050
2019-12-29 19:04:29 +01:00
Dave Davenport
afda9cbb13 [Doc] Update theme manpage with import. 2019-12-29 17:30:53 +01:00
Dave Davenport
f3bb043df0 [Textbox] Add placeholder.
Fixes: #1020
2019-12-26 14:24:10 +01:00
Dave Davenport
2c56e5ca33 [DOC] Update theme documentation with @media. 2019-12-25 23:10:46 +01:00
Dave Davenport
e9dde8e2ac [Doc] Update rofi-theme documentation.
allow `content` as alias to `str` on textbox.
2019-12-14 10:59:10 +01:00
Dave Davenport
5a457022e9
Update rofi-theme.5.markdown 2019-11-18 20:38:38 +01:00
Dave Davenport
c1378e4c60 [View] Add two widgets num-rows/num-filtered-rows
Issue: #1026
2019-11-07 11:49:45 +01:00
Dave Davenport
f28cf0207e Update rofi-theme manpage with button and icon feature. 2019-09-20 15:01:34 +02:00