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
Dave Davenport
bb5868199f
Re-indent the code using clang-format
2023-03-26 13:19:58 +02: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
727d7c579d
Update copyright dates.
2023-01-14 13:02:35 +01:00
Dave Davenport
d9935e594e
[Doc] Fix some missing docu.
2022-11-19 21:50:34 +01: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
fb24fc0999
Add a warning list and append it to the message box.
2022-07-27 23:44:56 +02:00
Dave Davenport
0e90fb065f
[Build] Fix some compile warnings.
2022-07-23 00:28:55 +02:00
Dave Davenport
386877dd22
[Theme] Add enabled property with env support.
2022-07-15 23:28:57 +02:00
Dave Davenport
c7776ce9b7
[Theme] Improve error mesg on failed variable.
2022-06-01 16:51:48 +02:00
Dave Davenport
0f3a88fc2c
[Theme] Change back to g_ascii_formatd
...
Use extra space and 0 initialized array. Don't use lf just f.
issue: #1611
2022-04-05 00:06:53 +02:00
Dave Davenport
597157e0c9
[Theme] small change in formatting code.
2022-04-04 23:33:48 +02:00
Dave Davenport
f088d75ee4
Cleanup some duplicate checks.
2022-03-15 01:00:56 +01:00
Dave Davenport
eff3b86c94
Bump copyright date.
2022-02-07 23:17:15 +01:00
Dave Davenport
6b3dc4a8af
[Theme] Make error message more verbose.
2022-02-06 18:33:32 +01:00
Dave Davenport
a34c13bdb2
[Theme] Validate variables in theme and throw error on fail.
...
issue: #1580
2022-01-31 23:19:51 +01:00
Dave Davenport
579735e76f
[Theme] Add warning when we find an unresolved link.
2022-01-31 20:23:33 +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
Dave Davenport
33643d0642
Theme array fix inheriting.
2022-01-24 21:50:52 +01:00
Dave Davenport
4bef336b9c
What is in a name.
2022-01-24 20:33:19 +01:00
Dave Davenport
55b043bcfa
[Theme] Add set type for testing.
...
Allows a set of properties, f.e.:
test: { "aap", "noot", "mies"}
or
tabs: { 1px, 10px, 1px, 3em }
Issue: #1571
2022-01-24 19:43:08 +01:00
Dave Davenport
9ab2059865
[ #1569 ] Make order explicit
2022-01-18 11:41:37 +01:00
Dave Davenport
b6ce41825c
[ #1569 ] Add initial round,floor,ceil function
...
a round b
rounds a to the closest multiple off b
a ceil b
ceil a to the multiple off b
a floor b
floor a to the multiple off b
Completely untested.
2022-01-18 11:01:56 +01:00
Dave Davenport
f0500a5a0e
[Help] Print out the parsed config/theme files.
2021-12-12 20:56:32 +01:00
Dave Davenport
dac09b8728
Cleanups based on cppcheck.
2021-12-01 13:14:36 +01:00
Dave Davenport
b77de4c00d
[Theme] Accept just color for highlight
2021-11-08 21:46:55 +01:00
Dave Davenport
4face975a9
[Theme] Print known colors as color name.
...
When printing look if the set color has a known color name, print this.
2021-09-20 19:57:12 +02:00
Dave Davenport
562146730b
[THEME] I1442 Fix parsing of nested media blocks.
...
* [1442] Fix widget media nested
* [Theme] Fix memory leak in P_LIST
* [I1442] Support merging down default block.
2021-09-08 14:16:28 +02:00
Dave Davenport
3f5d82ff56
[Theme] Don't truncate double default value.
...
Fixes : #1419
2021-09-02 09:48:33 +02:00
Dave Davenport
0b83ab96ce
[Theme] double inheritance integer fallback fix
2021-08-27 00:18:14 +02:00
Dave Davenport
e4d5c10e47
[Theme] Try to fix inheritance (2nd attempt).
2021-08-26 23:34:07 +02:00
Dave Davenport
3c8ca2390d
[main] Try to fix default theme loading.
...
* Add more debug output on failing to load theme.
* Don't load default theme, if empty theme is explicitly loaded.
2021-08-23 22:57:39 +02:00
Dave Davenport
c64565e877
[CppCheck] Fix some shadowing variables.
2021-08-21 01:08:40 +02:00
Dave Davenport
954fc728b2
[Cleanup] Using clang-tidy
2021-08-18 01:16:45 +02:00
Dave Davenport
18e118a250
[Theme] Fix inheritance copy paste error.
2021-08-17 11:21:07 +02:00
Dave Davenport
9f777a7a7b
[Themes] Fix inheritance with state set.
...
Update theme.c and included themes.
This should allow you to set `element-text { text-color: inherit;
background-color: inherit;}` to fix old themes.
2021-08-14 13:58:21 +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
Dave Davenport
9f71c4f78d
[Config] Load default config file in at startup
...
* load via resources doc/default_configuration.rasi
* print the configuration options on dump-config
2021-07-10 00:25:20 +02:00
Dave Davenport
370287c2ca
[Theme] Remove listview backwards compatibility hack.
2021-07-02 18:06:06 +02:00
Dave Davenport
4c1a74e15e
[Widget] Add scaling option to background-image.
2021-06-15 17:18:34 +02:00
Dave Davenport
0f21541327
[Configuration] Add start of more 'theme' based configuration.
...
Nested CSS blocks in configuration {} are parsed into
rofi_configuration.
2021-06-14 19:29:05 +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
beccfe4178
[Widget] with background image, draw background-color first.
2021-06-13 21:41:31 +02:00
Dave Davenport
1e25ae03b7
[Widget] Extend the pattern when loading, good for bg patterns.
2021-06-13 21:35:42 +02:00
Dave Davenport
a0b8a05315
[Widget] Change scaling of background-image
2021-06-13 20:59:28 +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
9d85bcb914
Update copyright header.
2021-06-09 14:50:39 +02:00
Dave Davenport
dc46457f71
Remove deprecated theme options
...
* color_window
* color_urgent
* color_active
* color_normal
2021-06-08 22:44:15 +02:00