about summary refs log tree commit diff stats
path: root/src/config/theme.c
Commit message (Collapse)AuthorAgeFilesLines
* MUC: Show offline members in sidebarThorben Günther2021-03-081-0/+1
|
* Update copyrightMichael Vetter2021-01-081-1/+1
|
* Set default color for trackbarMichael Vetter2020-12-101-0/+1
| | | | Fix https://github.com/profanity-im/profanity/issues/1453
* Fix various typosMichael Vetter2020-12-101-1/+1
|
* docs: fix simple typo, certian -> certainTim Gates2020-12-101-1/+1
| | | | | | There is a small typo in src/config/theme.c. Should read `certain` rather than `certian`.
* Basic support for building on NetBSD.nia2020-09-041-0/+2
| | | | | | - Add NetBSD as a recognized platform without -ldl. - Allow building with NetBSD libcurses instead of ncurses. - Portability to NetBSD sh - use POSIX '=' instead of '=='.
* Apply coding styleMichael Vetter2020-07-071-237/+447
|
* Revert "Apply coding style"Michael Vetter2020-07-071-450/+240
| | | | | | This reverts commit 9b55f2dec0ea27a9ce4856e303425e12f866cea2. Sorting the includes creates some problems.
* Apply coding styleMichael Vetter2020-07-071-240/+450
| | | | Regards https://github.com/profanity-im/profanity/issues/1396
* Remove prefs_free_string()Michael Vetter2020-07-021-1/+1
| | | | | It just does a free. Related to b580b9ef119045f142fa4baa9689a1c5ce8864ef
* Add default value for titlebar.scrolledMichael Vetter2020-07-011-0/+1
| | | | Fix https://github.com/profanity-im/profanity/issues/1380
* Define POSIX macro to have strdupMichael Vetter2020-06-121-4/+5
| | | | | | | | | | | | | | https://github.com/profanity-im/profanity/commit/98c38dc6d6d29333c63f80327774f094610d8602 sets C99 as standard. strdup() is not part of C99. For now set `-D_POSIX_C_SOURCE=200809L` macro to have strdup() in C99. Using `gnu99` instead would be another option. We should take more care to use glib functions whenever possible. Regards https://github.com/profanity-im/profanity/issues/1357
* Make 'scrolled' themeableMichael Vetter2020-05-211-0/+2
|
* Add -t theme optionMichael Vetter2020-03-241-2/+6
| | | | | | `profanity -t bios` loads the bios theme now. Fix https://github.com/profanity-im/profanity/issues/1286
* titlebar: allow displaying MUC name and MUC jidMichael Vetter2020-03-241-1/+2
| | | | | | `/titlebar use name|jid` -> `/titlebar show|hide name|jid` Fix https://github.com/profanity-im/profanity/issues/1284
* Make trackbar color configurableMichael Vetter2020-02-211-0/+1
| | | | Use `main.trackbar` in themes.
* Allow utf8 symbols as omemo/pgp/otr indicator charMichael Vetter2020-02-201-6/+6
| | | | Fix https://github.com/profanity-im/profanity/issues/1264
* Fix theme setting correction charMichael Vetter2020-02-201-1/+1
| | | | Copy paste error. We actually set the omemo char..
* xep-0308: make correction.char themeableMichael Vetter2020-02-101-0/+8
|
* Change theme handlingMichael Vetter2020-01-291-3/+5
| | | | | | | | | | | | | | | | So far when loading a theme it also overwrote the preferences the user set. Lengthy discussion can be found at https://github.com/profanity-im/profanity/issues/1077 Now we use `/theme load themename` to load the [colours] part of a themem only. `/theme full-load themename` will load the complete theme including preferences set in there. Regards https://github.com/profanity-im/profanity/issues/1077
* Refactor theme.cMichael Vetter2020-01-291-27/+44
| | | | | | Make _theme_list_dir() static. Sort _load_preferences() loadings accoding to type. Add comments.
* Add option to display MUC name or JID in titlebarMichael Vetter2020-01-231-0/+1
| | | | Add `/titlebar use [name|jid]`.
* Add `/roster room use` commandMichael Vetter2020-01-231-0/+1
| | | | | | | `/roster room use name` to use the name of the MUC in the roster list. `/roster room use jid` to use the jid of the MUC in the roster list. Display it only in case `/roster room by none` is set so far.
* XEP-0392: get background color from themeMichael Vetter2020-01-221-0/+8
| | | | | | | So far we just used -1 (default color). Now we actually check whether `bkgnd` is set in the theme file and use this if available. Fix https://github.com/profanity-im/profanity/issues/1255
* Update my Copyright to 2020Michael Vetter2020-01-031-1/+1
|
* Dont kill *.char preferences if theme doesnt contain itMichael Vetter2019-12-201-14/+0
| | | | | | | | | | | | | | | | | | | | | So far `/occupants char *`, `/roster contact char *`, `/roster room char #`, `/roster header char -`, `/occupants header char -` was saved and loaded from the preferences. But was overwritten when the theme was loaded. If the theme didn't set these values the value was just cleared. Despite that it might have been set in the users preferences. Funny enough the themes don't operate generally like this. For example `otr.char` is not cleared. This is again due to our borked theme/prefs concept (https://github.com/profanity-im/profanity/issues/1077). For now let's just use the one set from the preferences if it's set. The theme will however overwrite it if it is set there. Fix https://github.com/profanity-im/profanity/issues/1244
* Improve color blindness handlingMichael Vetter2019-12-121-2/+2
| | | | Rename some things and use a swtich instead of if.
* Implement Color Vision Deficiencies settingMichael Vetter2019-12-121-1/+11
| | | | | | Implement settings for redgreen and blue blindness. Regards https://github.com/profanity-im/profanity/issues/1191
* XEP-0392: theme, ui: conditionally colorize user nicksAurelien Aptel2019-12-031-0/+6
| | | | | | | | | * add theme_hash_attrs() * when printing a user message check PREF_COLOR_NICK to decide whether to colorize it or not ideally we should hash the jid instead of the nick but this is already a first step.
* Add vim modelineMichael Vetter2019-11-131-0/+1
|
* Change default text colors to default (#1213)Martin2019-10-221-8/+8
| | | | | | | | Change default themes text color Using "default" instead of white makes the default better readable when using a black/dark font on white/light background. May fix #535
* Add option to hilight unread rooms in /wins commandMichael Vetter2019-10-121-0/+2
| | | | | | | In the theme we can now set `cmd.wins.unread` to hvae a special color for the lines of the `/wins` output that have unread messages. Fix https://github.com/profanity-im/profanity/issues/895
* Add coloring of statusbar.current tab in viewDaniel Lublin2019-09-241-0/+3
| | | | | | | | | | | | | | This theme color applies to the tab title text of the statusbar tab that is currently shown. The (somewhat confusingly named) `statusbar.active` theme color now applies to all other tabs (before, it applied to all tabs). Coloring of a tab that is highlighted/has new messages is done as before using the `statusbar.new` theme color. The default color is set to `cyan`, and thus causes no visible change for users -- until modified.
* Set default color for main.text.historyMichael Vetter2019-09-111-0/+1
| | | | Might be related to https://github.com/profanity-im/profanity/issues/1186
* Allow colorization of history messagesMichael Vetter2019-09-101-0/+1
| | | | | | | | History was always printed with `THEME_DEFAULT` we now use `THEME_TEXT_HISTORY` which is accesible in theme files via `main.text.history`. Fix https://github.com/profanity-im/profanity/issues/1170
* Remove unused colour_string_t structMichael Vetter2019-08-231-5/+0
|
* theme: print to log not to consoleMichael Vetter2019-08-231-2/+1
| | | | Seems this can cause trouble in case we cant use the theme properly.
* Notify trying to load 256 colour theme in incapable terminalMichael Vetter2019-08-231-1/+2
|
* Reset color pairs when new theme is loadedMichael Vetter2019-08-231-0/+2
| | | | | | We only need the colour pairs initialized that the theme actually uses. It's otherwise possible that we run over the max value of initialzed pairs.
* Use log_error() instead of g_warning()Michael Vetter2019-08-231-2/+2
|
* Add 256 colors supportAurelien Aptel2019-08-231-104/+7
| | | | | | Themes can now use color names from the xterm color name list [1]. 1: https://jonasjacek.github.io/colors/
* Set foreground color for untrusted messagesPaul Fariello2019-06-201-0/+2
|
* Add myself to copyrightMichael Vetter2019-06-171-0/+1
| | | | Like discussed with James.
* Add omemo.char theme optionMichael Vetter2019-06-051-0/+8
| | | | Thanks to @kaffekanne for noticing this!
* Add occupants charMichael Vetter2019-05-021-0/+10
| | | | | | | `/occupants char` now sets a character that is displayed before the nick in MUCs. Similar like `/roster char` is displaying a char for the roster. Regards #690
* Fix statusbar number in themeMichael Vetter2019-04-241-1/+1
| | | | There is a typo here. So this actually never worked ;-)
* Add occupants wrap optionMichael Vetter2019-04-241-0/+1
| | | | | | | Wrapping for the occupants panel like already exists for the roster panel. See `/occupants wrap on`. Regards https://github.com/boothj5/profanity/issues/690
* Add occupants header charMichael Vetter2019-04-231-0/+10
| | | | | | | | `/occupants header char` now sets a character that is displayed before the role (moderator, visitor..) in a room. Similar to `/roster header char` is displaying a char for the roster. Regards https://github.com/boothj5/profanity/issues/690
* Add /occupants indent commandMichael Vetter2019-04-181-0/+5
| | | | | | | | Roster has a `/roster contact indent` option. Now we have the same for occupants. So contacts in roster and in MUC can have configurable indentation. Regards https://github.com/boothj5/profanity/issues/690
* Update copyright to include 2019Michael Vetter2019-01-221-1/+1
|