Commit Graph

115 Commits

Author SHA1 Message Date
Qball
f0ccf4c186 [Widget] Add 2 workaround for error in corner radius drawing
* Disable AA (works on nvidia)
* Disable nvidia workaround.
2025-03-30 15:04:22 +02:00
J0hannes101
56fd08ed58 [scrollbar] Add theming for rounded corners (#2108)
* [scrollbar] Add theming for rounded corners

* rename "rounded-corners" to "handle-rounded-corners"
2025-03-08 18:34:39 +01:00
Qball
a993ceadf4 [DOC] Fix indenting of sub-bullets as mkdocs interpets them differently
issue: #2112
2025-03-06 11:26:18 +01:00
J0hannes101
e70e3906cc Add theming to hide text cursor if no text is put in (#2106)
* Add theming to hide text cursor if no text is put in

* rename "hide-empty-cursor" to "hide-cursor-on-empty"

* update docs
2025-02-25 18:50:25 +01:00
Dave Davenport
88456b6adc [WIP] [View] Allow cycling through matching methods (#2091)
* [View] Allow cycling through matching methods

* [Doc] Fix documentation and test for keybindings

* [Helper] Allow selecting different matching modes for cycling at runtime.

* [View] Fix bool to gboolean

* [Doc] Small type fix, theme cleanup

* [Overlay] Make timeout configurable.

* [Helper] Reduce scope of variable.
2025-02-09 17:34:57 +01:00
Qball
5b95abce92 [Lexer] Allow for optional imports.
Adds the `?import` syntax.

fixes: #2078
2025-01-20 14:34:53 +01:00
Qball
e8ecd86bc0 [Doc] Update theme documentation with import resolving update.
Resolve both .rasi and .rasinc and what order

Issue: #2069
2025-01-02 21:09:20 +01:00
lbonn
433f9664e9 [Doc] Switch to pandoc and remove generated files (#1955)
* [Build] Add missing dist files from libnkutils

* [Doc] Switch to pandoc and remove generated files

* [Doc] Rewrite markdown for conversion to man

* convert existing markup to use definition list (a bit hacky...)
* rewrite title to pandoc man metadata
* reduce heading nesting to match most man pages
* inline code displayed as bold, also common man style

* [Doc] New installation with autoconf and meson

- autoconf:
  * generate in source directory if pandoc found
  * install from source directory

- meson:
  * generate and install with build directory if pandoc found
  * try to install from source directory if pandoc not found
  * bail otherwise

* [Doc] Make pandoc filter 2.9 compatible

Man pages look better with pandoc >= 2.17
2024-03-05 16:22:47 +01:00
Dave Davenport
c78179dcc8 [lexer] Add dmenu as enabled option for media type.
fixes: #1903
2023-10-03 21:06:53 +02:00
Nikita Zlobin
c6f3cfb7d7 Support single quotes for strings as in CSS 2023-08-21 18:54:21 +02:00
Dave Davenport
a7aa8224cb [rofi-theme] fix typo 2023-08-15 19:16:26 +02:00
Dave Davenport
ad06fb9516 [Theme] Try to fix importing of theme.
- Fix the two place of resolving into one method.
- Do not accept file in CWD.
- Prefer file if it exists in same directory as parent file that
  imported it.

fixes: #1889
2023-08-15 19:12:14 +02:00
Nikita Zlobin
a383eb858e Fix mm type in description
Signed-off-by: Dave Davenport <qball@gmpclient.org>
2023-07-24 22:56:00 +02:00
Dave Davenport
0133697fd2 [Doc] Update theme manpage with remark-lint hints. 2023-03-27 18:45:44 +02:00
Christian Friedow
f5aa8f27a2 docs: element children theming (#1818)
* docs: element children theming

* docs: move element custom children docs

* docs: use relative link instead of absolute
2023-03-05 11:17:57 +01:00
Dave Davenport
1b1aa37f20 #1802: Calc broken fix (#1803)
* [Theme] First move to double internal calculations.

* [Theme] Allow float numbers.

* [Theme] Fix unary - and tighten the grammar parser.

* [Theme] Rename % to modulo to fix compiler.

* [Theme] Dump right modulo syntax.

* [Test] add missing end_test

* [Grammar] Allow negative numbers as property value
2023-02-14 15:53:10 +01:00
Dave Davenport
fb7c8c71ef [Doc] theme, spelling fix and more textual tweaks. 2023-01-25 23:20:06 +01:00
Dave Davenport
bc776fd67c [Doc] More tweaks to get the formulation right. 2023-01-25 23:15:30 +01:00
Dave Davenport
db16c63168 [Doc] themes manpage, small textual improvement. 2023-01-25 23:05:20 +01:00
Dave Davenport
b96b28ebde [Doc] Try to fix some markdown, themes.
seems fine in editor, not fine rendered in website.
2023-01-25 23:00:30 +01:00
Dave Davenport
7a1eb91329 [Doc] Try to clarify the children situation for the listview widget. 2023-01-25 22:55:04 +01:00
Dave Davenport
004f4ebd98 [doc] Add conflicting constraint section to manpage. 2023-01-22 12:54:45 +01:00
Dave Davenport
f70b0ed3fd [Doc] Add manpage documentation for pango font string. 2023-01-14 12:44:55 +01:00
Dave Davenport
3d62bb32c9 MKDoc website (#1772)
* Add initial documentation page using mkdocs

* Test action

* Add notes to mkdoc site.

* Add installation guide

* Add installation and config guide to mkdocs.

* Add installation manual

* Add image to main page

* [mkdocs] Add plugin guide.

* [mkdocs] Add plugin to main page and some small fixes.

* Add shipped themes page

* [actions] Also rebuild website on the next branch
2022-12-31 13:15:01 +01:00
Dave Davenport
d464822505 [Theme] support rasinc for theme include files. 2022-12-30 11:54:15 +01:00
Dave Davenport
3d73cf2554 [Textbox] Cursor goes over, not under. allow cursor outline. 2022-12-23 22:11:22 +01:00
Dave Davenport
0ff6ff21c3 [Textbox] Add text-outline to style 2022-12-23 13:38:09 +01:00
Dave Davenport
a1943bab1f [Doc] Clarify documentation on require-input further. 2022-12-20 21:21:14 +01:00
Dave Davenport
356e9a98bb [Doc] Clarify that require-input only hides it. 2022-12-20 16:35:47 +01:00
vE5li
23de9e9d2c make cursor more customizable by adding cursor-width and cursor-color (#1753)
* make cursor more customizable by adding cursor-width and cursor-color to the theme

* fix placeholder color

* add doc entry

* more documentation
2022-11-25 10:28:34 +01:00
Dave Davenport
fce721a105 [Textbox] Add 'placeholder-markup' flag.
Fixes: #1690
2022-08-28 21:47:05 +02:00
Herbert Verdida
74b249cd99 Fix manual for centering text relative to icon (#1669)
Centering text relative to icon should apply `vertical-align` to `text-element` not on `text-icon`.
2022-08-07 09:21:32 +02:00
Dave Davenport
903def557b [Doc] Clarify capitalize bug in manpage. 2022-07-30 15:07:11 +02:00
Dave Davenport
9d001aaaf7 [Theme] Do a pango version check. 2022-07-30 15:05:28 +02:00
Dave Davenport
77af850200 [textbox] Implement text-transform add upper/lower/capitalize transform
fixes: #1010
2022-07-30 14:50:05 +02:00
Dave Davenport
5eafdc4b06 [Doc] Update releasenotes. 2022-07-21 21:48:53 +02:00
Dave Davenport
59e9b77a2e [Doc] Update releasenotes, move section in manpage. 2022-07-16 13:33:13 +02:00
Dave Davenport
386877dd22 [Theme] Add enabled property with env support. 2022-07-15 23:28:57 +02:00
Dave Davenport
9c18aaef22 [View] Add icon-current-entry widget. 2022-06-27 17:09:21 +02:00
Dave Davenport
8ee05a718e [View] Add textbox-current-entry widget. 2022-06-27 16:56:59 +02:00
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