QTfrontend/res/css/chat.css
author Wuzzy <Wuzzy2@mail.ru>
Wed, 07 Nov 2018 20:39:20 +0100
changeset 14162 2c1502185e8b
parent 9865 415e6d04a1ac
permissions -rw-r--r--
Some minor fixes in de.txt
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6201
d88e7f6cf499 fix of /saveStyleSheet command, error message on stylesheet import fail
sheepluva
parents: 6197
diff changeset
     1
6185
a6aa2d44f390 document css files better
sheepluva
parents: 6182
diff changeset
     2
/******************************************************************************
a6aa2d44f390 document css files better
sheepluva
parents: 6182
diff changeset
     3
 *
a6aa2d44f390 document css files better
sheepluva
parents: 6182
diff changeset
     4
 * CSS-like definition of chat appearance
a6aa2d44f390 document css files better
sheepluva
parents: 6182
diff changeset
     5
 *
a6aa2d44f390 document css files better
sheepluva
parents: 6182
diff changeset
     6
 ******************************************************************************
a6aa2d44f390 document css files better
sheepluva
parents: 6182
diff changeset
     7
 *
6178
affa860f2983 BOOOOooOM <headshot>! removing default stylesheets from c++ code and adding them as text files to the qt resources
sheepluva
parents:
diff changeset
     8
 * see http://doc.qt.nokia.com/4.5/richtext-html-subset.html#css-properties
6180
0992fc5a4ad9 some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents: 6178
diff changeset
     9
 *
0992fc5a4ad9 some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents: 6178
diff changeset
    10
 * In the QTfrontend of hedgewars also display:none; will work for class names
6229
4c834af76c3b * fix highlighting (i just broke it by not negating a boolean expression)
sheepluva
parents: 6222
diff changeset
    11
 * that start with msg_ and .timestamp -  as long as they are referenced
9865
415e6d04a1ac debian is pedantic and isn't aware this is just a dev comment
nemo
parents: 8759
diff changeset
    12
 * directly and not within any class hierarchy.
6229
4c834af76c3b * fix highlighting (i just broke it by not negating a boolean expression)
sheepluva
parents: 6222
diff changeset
    13
 * Note: Will only effect new lines!
6185
a6aa2d44f390 document css files better
sheepluva
parents: 6182
diff changeset
    14
 *
a6aa2d44f390 document css files better
sheepluva
parents: 6182
diff changeset
    15
 ******************************************************************************
a6aa2d44f390 document css files better
sheepluva
parents: 6182
diff changeset
    16
 *
a6aa2d44f390 document css files better
sheepluva
parents: 6182
diff changeset
    17
 * This file can be stored at different locations, but it will be read only
a6aa2d44f390 document css files better
sheepluva
parents: 6182
diff changeset
    18
 * once, based on first file found in this order:
a6aa2d44f390 document css files better
sheepluva
parents: 6182
diff changeset
    19
 *
6235
bb1a657f751b stylesheet comments/adjustments
sheepluva
parents: 6231
diff changeset
    20
 *    <userdir>/Data/css/chat.css ( create/see full path with: /saveStyleSheet )
bb1a657f751b stylesheet comments/adjustments
sheepluva
parents: 6231
diff changeset
    21
 *    <datadir>/css/chat.css
bb1a657f751b stylesheet comments/adjustments
sheepluva
parents: 6231
diff changeset
    22
 *    <internal default style-sheet>
6185
a6aa2d44f390 document css files better
sheepluva
parents: 6182
diff changeset
    23
 *
a6aa2d44f390 document css files better
sheepluva
parents: 6182
diff changeset
    24
 *****************************************************************************/
6178
affa860f2983 BOOOOooOM <headshot>! removing default stylesheets from c++ code and adding them as text files to the qt resources
sheepluva
parents:
diff changeset
    25
6235
bb1a657f751b stylesheet comments/adjustments
sheepluva
parents: 6231
diff changeset
    26
/* valid color values
bb1a657f751b stylesheet comments/adjustments
sheepluva
parents: 6231
diff changeset
    27
 *
bb1a657f751b stylesheet comments/adjustments
sheepluva
parents: 6231
diff changeset
    28
 * transparent   (no color)
bb1a657f751b stylesheet comments/adjustments
sheepluva
parents: 6231
diff changeset
    29
 *
bb1a657f751b stylesheet comments/adjustments
sheepluva
parents: 6231
diff changeset
    30
 * colorname
bb1a657f751b stylesheet comments/adjustments
sheepluva
parents: 6231
diff changeset
    31
 *   (a word that is the name of a valid color)
bb1a657f751b stylesheet comments/adjustments
sheepluva
parents: 6231
diff changeset
    32
 *   available colors: http://www.w3.org/TR/SVG/types.html#ColorKeywords
bb1a657f751b stylesheet comments/adjustments
sheepluva
parents: 6231
diff changeset
    33
 *   examples: red, steelblue, mintcream
bb1a657f751b stylesheet comments/adjustments
sheepluva
parents: 6231
diff changeset
    34
 *
bb1a657f751b stylesheet comments/adjustments
sheepluva
parents: 6231
diff changeset
    35
 * #RRGGBB
bb1a657f751b stylesheet comments/adjustments
sheepluva
parents: 6231
diff changeset
    36
 *   (hexadecimal additive red-green-blue, max is ff, min 00, half is 80)
bb1a657f751b stylesheet comments/adjustments
sheepluva
parents: 6231
diff changeset
    37
 *   examples: #ffff00 (yellow), #808080 (gray)
bb1a657f751b stylesheet comments/adjustments
sheepluva
parents: 6231
diff changeset
    38
 *
bb1a657f751b stylesheet comments/adjustments
sheepluva
parents: 6231
diff changeset
    39
 * rgb(r, g, b)
bb1a657f751b stylesheet comments/adjustments
sheepluva
parents: 6231
diff changeset
    40
 *   (decimal additive red-green-blue, max is 255, min 0, half is 128)
bb1a657f751b stylesheet comments/adjustments
sheepluva
parents: 6231
diff changeset
    41
 *   examples: rgb(135, 206, 250) (lightskyblue)
bb1a657f751b stylesheet comments/adjustments
sheepluva
parents: 6231
diff changeset
    42
 */
bb1a657f751b stylesheet comments/adjustments
sheepluva
parents: 6231
diff changeset
    43
bb1a657f751b stylesheet comments/adjustments
sheepluva
parents: 6231
diff changeset
    44
6180
0992fc5a4ad9 some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents: 6178
diff changeset
    45
/* links */
6235
bb1a657f751b stylesheet comments/adjustments
sheepluva
parents: 6231
diff changeset
    46
a { color: #c8c8ff; }
6180
0992fc5a4ad9 some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents: 6178
diff changeset
    47
6197
sheepluva
parents: 6185
diff changeset
    48
/* appearance of the whole chat */
sheepluva
parents: 6185
diff changeset
    49
/* body { color: white; background-color: #000000; } */
sheepluva
parents: 6185
diff changeset
    50
sheepluva
parents: 6185
diff changeset
    51
/* appearance of all elements in chat */
sheepluva
parents: 6185
diff changeset
    52
/* * { color: white; background-color: #000000; } */
6182
d56d18802481 some more chat fixes and changes, I think. hum. what was that? um. aaah, I better go catch some sheep ... er sleep.. um..
sheepluva
parents: 6181
diff changeset
    53
6180
0992fc5a4ad9 some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents: 6178
diff changeset
    54
/* nick names (they are also sometimes linked) */
6178
affa860f2983 BOOOOooOM <headshot>! removing default stylesheets from c++ code and adding them as text files to the qt resources
sheepluva
parents:
diff changeset
    55
.nick { text-decoration: none; }
6180
0992fc5a4ad9 some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents: 6178
diff changeset
    56
0992fc5a4ad9 some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents: 6178
diff changeset
    57
/* various chat messages */
6182
d56d18802481 some more chat fixes and changes, I think. hum. what was that? um. aaah, I better go catch some sheep ... er sleep.. um..
sheepluva
parents: 6181
diff changeset
    58
.msg_UserChat { color:#ffcc00; } /* chat of people who aren't your friends */
6180
0992fc5a4ad9 some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents: 6178
diff changeset
    59
.msg_UserChat .nick { color:#ffec20; }
6182
d56d18802481 some more chat fixes and changes, I think. hum. what was that? um. aaah, I better go catch some sheep ... er sleep.. um..
sheepluva
parents: 6181
diff changeset
    60
.msg_FriendChat { color: #b0ff08; }
d56d18802481 some more chat fixes and changes, I think. hum. what was that? um. aaah, I better go catch some sheep ... er sleep.. um..
sheepluva
parents: 6181
diff changeset
    61
.msg_FriendChat .nick { color: #30ff30; }
6180
0992fc5a4ad9 some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents: 6178
diff changeset
    62
.msg_UserJoin { color: #c0c0c0; }
0992fc5a4ad9 some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents: 6178
diff changeset
    63
.msg_UserJoin .nick { color: #d0d0d0; }
8759
1a4b9b9fe2b0 add lobby chat features to room chat
sheepluva
parents: 6235
diff changeset
    64
.msg_UserLeave { color: #b8b8b8; }
1a4b9b9fe2b0 add lobby chat features to room chat
sheepluva
parents: 6235
diff changeset
    65
.msg_UserLeave .nick { color: #c8c8c8; }
6181
c739b503ae31 ugh wth... cleaned FL/IL change notifications up
sheepluva
parents: 6180
diff changeset
    66
.msg_FriendJoin { font-weight: bold; color: #c0f0c0; }
6180
0992fc5a4ad9 some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents: 6178
diff changeset
    67
.msg_FriendJoin .nick { color: #d8f0d8; }
8759
1a4b9b9fe2b0 add lobby chat features to room chat
sheepluva
parents: 6235
diff changeset
    68
.msg_FriendLeave { font-weight: bold; color: #ffe090; }
1a4b9b9fe2b0 add lobby chat features to room chat
sheepluva
parents: 6235
diff changeset
    69
.msg_FriendLeave .nick { color: #f8e878; }
6180
0992fc5a4ad9 some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents: 6178
diff changeset
    70
.msg_UserAction { color: #ff80ff; }
0992fc5a4ad9 some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents: 6178
diff changeset
    71
.msg_UserAction .nick { color: #ffa0ff;}
0992fc5a4ad9 some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents: 6178
diff changeset
    72
.msg_FriendAction { color: #ff00ff; }
0992fc5a4ad9 some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents: 6178
diff changeset
    73
.msg_FriendAction .nick { color: #ff30ff; }
6182
d56d18802481 some more chat fixes and changes, I think. hum. what was that? um. aaah, I better go catch some sheep ... er sleep.. um..
sheepluva
parents: 6181
diff changeset
    74
8759
1a4b9b9fe2b0 add lobby chat features to room chat
sheepluva
parents: 6235
diff changeset
    75
/* uncomment next lines to disable join and leave messages of non-friends */
6229
4c834af76c3b * fix highlighting (i just broke it by not negating a boolean expression)
sheepluva
parents: 6222
diff changeset
    76
/* .msg_UserJoin { display:none; } */
8759
1a4b9b9fe2b0 add lobby chat features to room chat
sheepluva
parents: 6235
diff changeset
    77
/* .msg_UserLeave { display:none; } */
6229
4c834af76c3b * fix highlighting (i just broke it by not negating a boolean expression)
sheepluva
parents: 6222
diff changeset
    78
6197
sheepluva
parents: 6185
diff changeset
    79
/* timestamps */
sheepluva
parents: 6185
diff changeset
    80
.timestamp {
sheepluva
parents: 6185
diff changeset
    81
    color: #e0d8e0;
sheepluva
parents: 6185
diff changeset
    82
    font-family: courier;
sheepluva
parents: 6185
diff changeset
    83
    font-size: 11px;
sheepluva
parents: 6185
diff changeset
    84
    vertical-align: center;
sheepluva
parents: 6185
diff changeset
    85
    /* uncomment next line to hide timestamps */
sheepluva
parents: 6185
diff changeset
    86
    /* display: none; */
sheepluva
parents: 6185
diff changeset
    87
}
sheepluva
parents: 6185
diff changeset
    88
6231
810b9ced2b67 change default timestamp format to hh:mm
sheepluva
parents: 6229
diff changeset
    89
/* .timestamp:hours { display: none; } */
810b9ced2b67 change default timestamp format to hh:mm
sheepluva
parents: 6229
diff changeset
    90
.timestamp:seconds { display: none; }
6229
4c834af76c3b * fix highlighting (i just broke it by not negating a boolean expression)
sheepluva
parents: 6222
diff changeset
    91
6197
sheepluva
parents: 6185
diff changeset
    92
/* you can also set timestamp style for different msg types */
sheepluva
parents: 6185
diff changeset
    93
.msg_FriendChat .timestamp { color: #ffffff; }
sheepluva
parents: 6185
diff changeset
    94
6182
d56d18802481 some more chat fixes and changes, I think. hum. what was that? um. aaah, I better go catch some sheep ... er sleep.. um..
sheepluva
parents: 6181
diff changeset
    95
/* messages that contain your nickname */
d56d18802481 some more chat fixes and changes, I think. hum. what was that? um. aaah, I better go catch some sheep ... er sleep.. um..
sheepluva
parents: 6181
diff changeset
    96
.highlight {  }
6235
bb1a657f751b stylesheet comments/adjustments
sheepluva
parents: 6231
diff changeset
    97
.highlight .nick { color: #ff0000; } /* nicknames in highlighted messages */
6182
d56d18802481 some more chat fixes and changes, I think. hum. what was that? um. aaah, I better go catch some sheep ... er sleep.. um..
sheepluva
parents: 6181
diff changeset
    98
d56d18802481 some more chat fixes and changes, I think. hum. what was that? um. aaah, I better go catch some sheep ... er sleep.. um..
sheepluva
parents: 6181
diff changeset
    99
/* system messages */
6180
0992fc5a4ad9 some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents: 6178
diff changeset
   100
.msg_Error { color: #ff0000; }
0992fc5a4ad9 some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents: 6178
diff changeset
   101
.msg_Warning { color: #ff8000; }
0992fc5a4ad9 some changes to the css... display:none; works now (e.g. you can use it for user join/leave messages that are not your friends)
sheepluva
parents: 6178
diff changeset
   102
.msg_Notice { color: #fefefe; }
6222
96d10dcd6d84 + make names in notice messages and leave messages clickable too
sheepluva
parents: 6201
diff changeset
   103
.msg_Notice .nick { color: #ffffd0; }
6182
d56d18802481 some more chat fixes and changes, I think. hum. what was that? um. aaah, I better go catch some sheep ... er sleep.. um..
sheepluva
parents: 6181
diff changeset
   104