summaryrefslogtreecommitdiffstats
path: root/lexer/theme-lexer.l
AgeCommit message (Collapse)Author
2021-06-15[Widget] Add scaling option to background-image.Dave Davenport
2021-06-14[Configuration] Add start of more 'theme' based configuration.Dave Davenport
Nested CSS blocks in configuration {} are parsed into rofi_configuration.
2021-06-14[Theme] Add direction support to linear-gradient.Dave Davenport
2021-06-13[Widget] Add initial support for background-image.Dave Davenport
* Supports url("path") and linear-gradient(start,stop).
2021-06-09[DSL] Move theme reset into the grammer parser and out of lexer.Dave Davenport
2021-05-23Add cursor property (#1313)TonCherAmi
* Change mouse cursor on widget hover Currently only listview element and editbox are supported. * Add cursor property
2020-10-02[Lexer] Fix parsing string in dict not to match " in middle of string.Dave Davenport
Fixes: 1205
2020-09-14[Calc] Add min/max operator support to calc()Dave Davenport
Fixes: #1172
2020-09-11[Lexer] Fix media parser.Dave Davenport
2020-06-09Millimeter support for distance (#1144)nick87720z
2020-05-17Support rasi config character type options (#1131)Jason Kim
* style: remove extra space * feat: handle xrm_Char in config parser Handle the `xrm_Char` case in the (rasi theme) config file parser. This should properly handle configuration like ``` matching-negate-char: "\0"; ``` and ``` matching-negate-char: "-"; ``` * refactor: don't handle mem in xrm_Char case `mem` shouldn't ever be set when `XrmOption` is `type` `xrm_Char`. Therefore, there is no need to check it and free it. Remove that logic. * refactor: further condense logic * style: s/Everythin/Everything/ * style: s/parsing an section/parsing a section/ ...and missing period. * feat(lexer): add CHAR token Add a `CHAR` token that takes things of the form `'<char>'` or some specific backslash escape sequences like `'\''` and `'\0'`. For now, save it as a `T_STRING`. * refactor: define char property type * feat(parser): add cval and T_CHAR * refactor: use char property for xrm_Char Instead of using strings for property elements of type char, use characters, which were recently added to the grammar.
2020-04-26[Test] Fix compiler warning, theme test (bug in lexer) and more.Dave Davenport
2020-04-24[Themes] add calc() support to distance in theme format. (#1105)Dave Davenport
* 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.
2019-09-20Issue893: Add support for @media in the theme format. (#1015)Dave Davenport
* [Lexer] Add support for @media. Issue: #893 * [Theme] @media limit to px. * [Theme@Media] add *{} support. * [Theme@Media] Add support for monitor-id media. * [Theme@Media] Code cleanup. * [Theme@Media] Add min/max-aspect-ratio. * [Theme@Media] Remove some debug output Fixes: #893
2019-04-19Use g_list_free_full()Quentin Glidic
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2019-04-19Correctly include config.h firstQuentin Glidic
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2019-03-21[Lexer] Fix nested () in variable default field.Dave Davenport
- var ( a, rgba(0,0,0,0)) was broke Fixes: #936
2019-01-29[Theme3.0] Change reference to use the CSS like var() syntax.Dave Davenport
Supports defaults var(name, default); var(name); Where default can be another property. (https://www.w3schools.com/css/css3_variables.asp) This deprecates the @name syntax. Fixes: #876
2018-07-10[Tests] Fix window test.Dave Davenport
2018-07-09[Lexer] Also allow non-capitalized environment variablesDave Davenport
2018-07-09[Lexer] Add support for environment variables.Dave Davenport
You can do ${TEST} to parse the content of TEST. This will be fed into the lexer again, and should parse all properties.
2018-06-09Add an generic icon fetcher that can be used by any widget and re-uses the ↵Dave Davenport
main threadpool. Add an generic icon fetcher that can be used by any widget and re-uses the main threadpool. * Make threadpool more generic usable. * Add generic icon fetcher, that caches icons. * Make DRUN use this fetcher. * Add icon widget. #809
2018-04-28[Lexer] Allow quoted utf8 string in list type.Dave Davenport
2017-11-05Add the prompt colon to the default theme.Dave Davenport
- Fix dumping of theme localization of the decimal-point. Force it to be always a '.'.
2017-10-30[ThemeParser] Give a more detailed error when only 7 elements are specified ↵Dave Davenport
in argb syntax.
2017-10-22[Lexer/Parser] Make the '#' before element optional.Dave Davenport
2017-09-18Add @theme import command, that resets the current theme.Dave Davenport
2017-09-18small update to default themeDave Davenport
2017-09-07Alias 'color' property name to 'text-color'Dave Davenport
2017-09-06Add support for multiple selectors. #dummy0, dummy1 {}Dave Davenport
2017-09-06Flatten hierarchy, don't inherit by default.Dave Davenport
* add keyword inherit to language parser and theme structure.
2017-09-05Add `ch` as size unit.Dave Davenport
2017-06-20Support a config.rasi configuration file in the new formatDave Davenport
2017-06-14Add extra check for rofi_theme_parse_prepare_fileDave Davenport
2017-06-07Fix parsing old themes from rofi-themes repo.Dave Davenport
2017-06-07Support empty strings as property.Dave Davenport
2017-06-02Replace g_log by g_debugDave Davenport
2017-06-02Remove toupper from lexer.c replace by glib equiv.Dave Davenport
2017-06-02Make matching keywords like Vertical case-insensitive add test.Dave Davenport
- Make keywords like dash, horizontal, etc case-insensitive. - Add test for orientation property.
2017-06-02Add orientation property.Dave Davenport
2017-05-28Allow textbox to be added in themeDave Davenport
2017-05-28Merge remote-tracking branch 'origin/master' into barviewDave Davenport
2017-05-28Add strings.h to lexer file for strncasecmp.Dave Davenport
2017-05-25Allow interface to be dynamically changed.Dave Davenport
2017-05-22[Theme] Add small caps options (not working?)Dave Davenport
2017-05-18Add strikethrough highlight method.Dave Davenport
2017-05-16Change ARGB to RGBA, fix in theme converterDave Davenport
2017-05-15[ThemeParser] Add CSS color names supportDave Davenport
* [ThemeParser] Add css color names * Add CSS color support (WIP) * Parse color names in the lexer. * Add test for css color names * Indent and fix ordering
2017-05-15[ThemeParser] Extend color formats.Dave Davenport
- Support whitespace format. - Support deg,rad, grad, turn angle. - Add alpha channel support to hwb
2017-05-15[Lexer] Support hslaDave Davenport