Commit graph

45 commits

Author SHA1 Message Date
mathieui
518f933fb8 Fix #2343 2013-08-10 01:50:03 +02:00
mathieui
64c1a09023 Fix #2337 (search the themes the same way than plugins)
- Load the themes from:
    1 - The sources found in the directory ../data/themes/ (if it
    exists)
    2 - The user-defined dir (or ~/.local/blah)
    3 - The poezio_themes package if found

- Also fix some potential issues with the plugins importer
2013-08-10 00:24:27 +02:00
mathieui
19135d4a76 Fix #2306 (none, to, and from subscriptions should be more visible)
Added a configuration option and some theme variables.
2013-07-31 23:43:19 +02:00
mathieui
d269617788 Revert 9eaffe1369 because of 3.1 compat 2013-06-19 12:16:28 +02:00
mathieui
9eaffe1369 Fix the os.makedirs calls so that they don’t traceback for nothing 2013-06-09 03:45:10 +02:00
mathieui
26ea842cee Add a way to format background colors in a string
(also add colors to the /info command in MUCs)
2013-06-08 17:36:02 +02:00
mathieui
d797b1fd65 Implement user gaming (xep-0196)
- configuration options
- theming options
- /gaming
2013-03-12 16:12:47 +01:00
mathieui
cec1151ecb Fix #1839 (User mood/activity)
- Added as always new theming variables:
    CHAR_ROSTER_MOOD, CHAR_ROSTER_ACTIVITY (a SNOWMAN!)
    COLOR_ROSTER_MOOD, COLOR_ROSTER_ACTIVITY
- Added two new notification types in Theme.INFO_COLORS (mood/activity)
- Added new configuration options:
    display_mood/activity/tune_notifications (those can be set for a
    specific JID)
    enable_user_tune/nick/activity/mood
- Added /activity and /mood commands, with completions
- Moved the old /activity to /last_activity
- Details are show in the ContactInfoWin if there is room, or with "i"
  on a contact in the roster.
2013-03-11 23:06:52 +01:00
mathieui
71c35eb279 Implement XEP-0118 (Fix #1840)
- Add new theming options
- Show the tune in the roster (both in contact line and infowin)
- add an option to show tunes as info messages
2013-03-11 02:04:20 +01:00
mathieui
f00dd1b8fe Fix #2254
(add a new theming option, too)
2013-03-09 22:38:31 +01:00
mathieui
3f71405efd Add a CHAR_NEW_TEXT_SEPARATOR theming option 2013-03-06 22:34:41 +01:00
mathieui
3d98f48ba2 Fix #2182 (show s2s errors)
- Add the theming options COLOR_ROSTER_ERROR, CHAR_ROSTER_ERRROR, and
    CHAR_ROSTER_ASKED
2013-03-03 13:13:15 +01:00
mathieui
f1831cc0ec Fix the background color of some messages 2013-02-21 21:50:05 +01:00
Florent Le Coz
dd2a6d1d65 Implement XEP 296 for locking resource in conversations.
With a few specific behaviours: When manually opening a conversation with a
bare jid, we open a normal conversation that follows the XEP (locked and
unlocked accordingly). If the user manually opens a conversation with a
fulljid (by selecting a specific resource in the roster, or by specifying a
fulljid to the /message command), we open a special tab that doesn’t follow
the XEP (it is always locked to the same resource, and cannot be unlocked).

When a message is received, unless a special tab has been manually opened by
the other with that specific resource, we always send the messages to a uniq
normal tab, unlocking or locking it according to the XEP.

This means that only one tab can be opened with a given contact, unless the
user specifically chooses to open a special tab for a specific resource.

fixes #2159
2013-01-26 05:35:07 +01:00
mathieui
2ea8673a04 Improve the help system (#1986)
TODO: change the plugin API to take advantage of this
This change is backwards-compatible (as in “should not break anything”)
2013-01-06 17:36:14 +01:00
mathieui
c04fbadf2f Add a default color for “Warning” messages 2013-01-02 01:48:55 +01:00
mathieui
7ec85ae328 Fix #2143 Fix #2056
Show headline messages in the info buffer, and show error messages (or
other errors) with a special style.
2012-12-30 17:40:27 +01:00
Emmanuel Gil Peyrot
65e097f410 Display the number of revisions of a corrected message. 2012-12-29 13:14:50 +01:00
mathieui
2a145abf9b Allow theming of the info buffer messages
(only the left part)
2012-12-20 19:20:30 +01:00
Florent Le Coz
786f0e7222 Introduce a special "reverse" value for the COLOR_HIGHLIGHT_NICK theme option.
If COLOR_HIGHLIGHT_NICK = "reverse", the highlight nick will be in reverse
mode.
fix #2165
2012-12-15 02:42:30 +01:00
Florent Le Coz
fb8295c05f Do not use COLOR_HIGHLIGHT_NICK for things not related to highlighted nicks. 2012-12-15 02:05:21 +01:00
mathieui
267be566cd Add a new color to the theme, for the warning prompt
- Currently only used by the SSL checking prompt
- fg: black ; bg: red ; bold
2012-07-03 23:50:07 +02:00
mathieui
fb450a7138 Use a different theme variable for the /me message 2012-05-17 17:28:53 +02:00
mathieui
8fc6e53661 Make the visitor’s color readable (Fixes #2342) 2012-05-04 18:31:36 +02:00
mathieui
560390793d Add 'joined' tab state, and rewrite the function handling the priorities 2012-02-14 00:33:29 +01:00
Florent Le Coz
c9c066ae33 [Link Mauve] Add the ability to send and receive Attention (XEP-0224). 2012-01-27 19:13:04 +01:00
Florent Le Coz
7433510470 Merge branch 'master' of https://git.louiz.org/poezio
Conflicts:
	src/theming.py
	src/windows.py
2012-01-26 10:08:43 +01:00
Florent Le Coz
d6989db025 Make /theme error more descriptive 2012-01-26 10:05:37 +01:00
Florent Le Coz
7512001612 Make the color for information messages themable 2012-01-26 10:05:37 +01:00
Florent Le Coz
7d5fa2a316 Fix the comments in the theming.py file 2012-01-26 10:05:36 +01:00
manfraid
73e9d83711 Fixe 2104 2012-01-26 10:05:33 +01:00
mathieui
7ba6061362 Add affiliation chars in the theme 2012-01-25 17:51:11 +01:00
Florent Le Coz
99a16f2b86 Make the color for information messages themable 2012-01-24 15:46:51 +01:00
Florent Le Coz
09f16804a3 Fix the comments in the theming.py file 2012-01-24 15:17:54 +01:00
manfraid
02099123b0 Fixe 2104 2011-12-09 13:56:55 +01:00
Florent Le Coz
fa9ea5d168 Use almost all available 256 colors for nick colors
(only colors that look too much like white or black are not used)
2011-11-23 09:08:02 +01:00
mathieui
24ba3b6ed9 Add CHAR_CHATSTATE_* to the available theme options 2011-11-16 11:25:20 +01:00
mathieui
75f7d71080 Use os.path.expanduser to interpret '~' for _dir config options 2011-11-16 09:46:09 +01:00
Florent Le Coz
d67ec3278a Add an optional vertical tab list. 2011-11-16 02:09:30 +01:00
mathieui
7e78353621 Add a warning in case of theme not found, and now unsetting 'theme',
setting it to 'default' or a number of spaces has the same effect
2011-11-07 19:56:59 +01:00
Florent Le Coz
341da5b18e remove white from the nick colors 2011-10-01 22:47:47 +02:00
Florent Le Coz
8d67fbf133 merge 2011-09-25 19:28:31 +02:00
Florent Le Coz
674f151c38 Default theme is now ok, I think 2011-09-25 19:24:14 +02:00
Florent Le Coz
412e9c281c Convert 256 colors to 8 if the terminal doesn’t support them 2011-09-25 15:58:27 +02:00
Florent Le Coz
700b11e42d Handles 256 colors, easier theming and more flexible way to define colors
Doesn’t run yet if term doesn’t support 256 colors, I know
(thus the branch "256")
2011-09-21 00:52:03 +02:00