Fossil SCM
Replace the /chat attach button SVG with the corresponding Unicode 6.0 glyph. Not sure why we didn't do that in the first place, as all of the other buttons use emoji icons.
Commit
74479fb5930b8448e9c1696ba065cd260aa0e9eb9b17eefd29a5e21cc690450e
Parent
ae0940db8213cde…
2 files changed
+1
-18
-9
+1
-18
| --- src/chat.c | ||
| +++ src/chat.c | ||
| @@ -156,27 +156,10 @@ | ||
| 156 | 156 | */ |
| 157 | 157 | void chat_webpage(void){ |
| 158 | 158 | char *zAlert; |
| 159 | 159 | char *zProjectName; |
| 160 | 160 | char * zInputPlaceholder0; /* Common text input placeholder value */ |
| 161 | - const char *zPaperclip = | |
| 162 | - "<svg height=\"8.0\" width=\"16.0\"><path " | |
| 163 | - "stroke=\"rgb(100,100,100)\" " | |
| 164 | - "d=\"M 15.93452,3.2530441 " | |
| 165 | - "A 4.1499493,4.1265346 0 0 0 11.804809,6.5256284e-4 H 2.8582923 A " | |
| 166 | - "2.8239899,2.8080565 0 0 0 0.68965668,0.96142476 2.874599,2.8583801 " | |
| 167 | - "0 0 0 0.03119302,3.2388108 2.7632589,2.7476682 0 0 0 " | |
| 168 | - "0.81132923,4.7689293 3.168132,3.1502569 0 0 0 3.0300653,5.66565 l " | |
| 169 | - "7.7297897,-4e-7 a 1.6802234,1.6707433 0 0 0 0.0072,-3.3377933 H " | |
| 170 | - "5.6138192 v 1.0105899 l 5.1460358,-0.00712 a 0.66804062,0.66427143 " | |
| 171 | - "0 0 1 0,1.3237305 l -7.7226325,0.00712 A 2.0243655,2.0129437 0 0 1 " | |
| 172 | - "1.0332029,3.0964741 1.8522944,1.8418435 0 0 1 2.8511351,1.0041257 h " | |
| 173 | - "8.9465169 a 3.1478884,3.1301275 0 0 1 3.134859,2.4339559 3.0365483," | |
| 174 | - "3.0194156 0 0 1 -0.629835,2.4908908 3.0365483,3.0194156 0 0 1 " | |
| 175 | - "-2.31178,1.0746415 l -7.5437026,-0.014233 -0.00716,1.0034736 " | |
| 176 | - "7.5365456,0.00715 a 4.048731,4.0258875 0 0 0 3.957938,-4.7469259 z\"" | |
| 177 | - "/></svg>"; | |
| 178 | 161 | |
| 179 | 162 | login_check_credentials(); |
| 180 | 163 | if( !g.perm.Chat ){ |
| 181 | 164 | login_needed(g.anon.Chat); |
| 182 | 165 | return; |
| @@ -206,11 +189,11 @@ | ||
| 206 | 189 | @ <span class='cbutton' id="chat-button-preview" \ |
| 207 | 190 | @ title="Preview message (Shift-Enter)">👁</span> |
| 208 | 191 | @ <span class='cbutton' id="chat-button-search" \ |
| 209 | 192 | @ title="Search chat history">🔍</span> |
| 210 | 193 | @ <span class='cbutton' id="chat-button-attach" \ |
| 211 | - @ title="Attach file to message">%s(zPaperclip)</span> | |
| 194 | + @ title="Attach file to message">📎</span> | |
| 212 | 195 | @ <span class='cbutton' id="chat-button-settings" \ |
| 213 | 196 | @ title="Configure chat">⚙</span> |
| 214 | 197 | @ <span class='cbutton' id="chat-button-submit" \ |
| 215 | 198 | @ title="Send message (Ctrl-Enter)">📤</span> |
| 216 | 199 | @ </div> |
| 217 | 200 |
| --- src/chat.c | |
| +++ src/chat.c | |
| @@ -156,27 +156,10 @@ | |
| 156 | */ |
| 157 | void chat_webpage(void){ |
| 158 | char *zAlert; |
| 159 | char *zProjectName; |
| 160 | char * zInputPlaceholder0; /* Common text input placeholder value */ |
| 161 | const char *zPaperclip = |
| 162 | "<svg height=\"8.0\" width=\"16.0\"><path " |
| 163 | "stroke=\"rgb(100,100,100)\" " |
| 164 | "d=\"M 15.93452,3.2530441 " |
| 165 | "A 4.1499493,4.1265346 0 0 0 11.804809,6.5256284e-4 H 2.8582923 A " |
| 166 | "2.8239899,2.8080565 0 0 0 0.68965668,0.96142476 2.874599,2.8583801 " |
| 167 | "0 0 0 0.03119302,3.2388108 2.7632589,2.7476682 0 0 0 " |
| 168 | "0.81132923,4.7689293 3.168132,3.1502569 0 0 0 3.0300653,5.66565 l " |
| 169 | "7.7297897,-4e-7 a 1.6802234,1.6707433 0 0 0 0.0072,-3.3377933 H " |
| 170 | "5.6138192 v 1.0105899 l 5.1460358,-0.00712 a 0.66804062,0.66427143 " |
| 171 | "0 0 1 0,1.3237305 l -7.7226325,0.00712 A 2.0243655,2.0129437 0 0 1 " |
| 172 | "1.0332029,3.0964741 1.8522944,1.8418435 0 0 1 2.8511351,1.0041257 h " |
| 173 | "8.9465169 a 3.1478884,3.1301275 0 0 1 3.134859,2.4339559 3.0365483," |
| 174 | "3.0194156 0 0 1 -0.629835,2.4908908 3.0365483,3.0194156 0 0 1 " |
| 175 | "-2.31178,1.0746415 l -7.5437026,-0.014233 -0.00716,1.0034736 " |
| 176 | "7.5365456,0.00715 a 4.048731,4.0258875 0 0 0 3.957938,-4.7469259 z\"" |
| 177 | "/></svg>"; |
| 178 | |
| 179 | login_check_credentials(); |
| 180 | if( !g.perm.Chat ){ |
| 181 | login_needed(g.anon.Chat); |
| 182 | return; |
| @@ -206,11 +189,11 @@ | |
| 206 | @ <span class='cbutton' id="chat-button-preview" \ |
| 207 | @ title="Preview message (Shift-Enter)">👁</span> |
| 208 | @ <span class='cbutton' id="chat-button-search" \ |
| 209 | @ title="Search chat history">🔍</span> |
| 210 | @ <span class='cbutton' id="chat-button-attach" \ |
| 211 | @ title="Attach file to message">%s(zPaperclip)</span> |
| 212 | @ <span class='cbutton' id="chat-button-settings" \ |
| 213 | @ title="Configure chat">⚙</span> |
| 214 | @ <span class='cbutton' id="chat-button-submit" \ |
| 215 | @ title="Send message (Ctrl-Enter)">📤</span> |
| 216 | @ </div> |
| 217 |
| --- src/chat.c | |
| +++ src/chat.c | |
| @@ -156,27 +156,10 @@ | |
| 156 | */ |
| 157 | void chat_webpage(void){ |
| 158 | char *zAlert; |
| 159 | char *zProjectName; |
| 160 | char * zInputPlaceholder0; /* Common text input placeholder value */ |
| 161 | |
| 162 | login_check_credentials(); |
| 163 | if( !g.perm.Chat ){ |
| 164 | login_needed(g.anon.Chat); |
| 165 | return; |
| @@ -206,11 +189,11 @@ | |
| 189 | @ <span class='cbutton' id="chat-button-preview" \ |
| 190 | @ title="Preview message (Shift-Enter)">👁</span> |
| 191 | @ <span class='cbutton' id="chat-button-search" \ |
| 192 | @ title="Search chat history">🔍</span> |
| 193 | @ <span class='cbutton' id="chat-button-attach" \ |
| 194 | @ title="Attach file to message">📎</span> |
| 195 | @ <span class='cbutton' id="chat-button-settings" \ |
| 196 | @ title="Configure chat">⚙</span> |
| 197 | @ <span class='cbutton' id="chat-button-submit" \ |
| 198 | @ title="Send message (Ctrl-Enter)">📤</span> |
| 199 | @ </div> |
| 200 |
-9
| --- src/style.chat.css | ||
| +++ src/style.chat.css | ||
| @@ -613,19 +613,10 @@ | ||
| 613 | 613 | body.chat #chat-user-list .chat-user.selected { |
| 614 | 614 | font-weight: bold; |
| 615 | 615 | text-decoration: underline; |
| 616 | 616 | } |
| 617 | 617 | |
| 618 | -body.chat.fossil-dark-style #chat-button-attach > svg { | |
| 619 | - /* The black paperclip is barely visible in dark-mode | |
| 620 | - skins when they have dark buttons */ | |
| 621 | - filter: invert(0.8); | |
| 622 | -} | |
| 623 | -body.chat #chat-button-attach > svg { | |
| 624 | - transform: scale(170%); | |
| 625 | -} | |
| 626 | - | |
| 627 | 618 | body.cpage-chat-search .searchForm { |
| 628 | 619 | margin-top: 1em; |
| 629 | 620 | } |
| 630 | 621 | body.cpage-chat-search .spacer-widget button { |
| 631 | 622 | margin-left: 1ex; |
| 632 | 623 |
| --- src/style.chat.css | |
| +++ src/style.chat.css | |
| @@ -613,19 +613,10 @@ | |
| 613 | body.chat #chat-user-list .chat-user.selected { |
| 614 | font-weight: bold; |
| 615 | text-decoration: underline; |
| 616 | } |
| 617 | |
| 618 | body.chat.fossil-dark-style #chat-button-attach > svg { |
| 619 | /* The black paperclip is barely visible in dark-mode |
| 620 | skins when they have dark buttons */ |
| 621 | filter: invert(0.8); |
| 622 | } |
| 623 | body.chat #chat-button-attach > svg { |
| 624 | transform: scale(170%); |
| 625 | } |
| 626 | |
| 627 | body.cpage-chat-search .searchForm { |
| 628 | margin-top: 1em; |
| 629 | } |
| 630 | body.cpage-chat-search .spacer-widget button { |
| 631 | margin-left: 1ex; |
| 632 |
| --- src/style.chat.css | |
| +++ src/style.chat.css | |
| @@ -613,19 +613,10 @@ | |
| 613 | body.chat #chat-user-list .chat-user.selected { |
| 614 | font-weight: bold; |
| 615 | text-decoration: underline; |
| 616 | } |
| 617 | |
| 618 | body.cpage-chat-search .searchForm { |
| 619 | margin-top: 1em; |
| 620 | } |
| 621 | body.cpage-chat-search .spacer-widget button { |
| 622 | margin-left: 1ex; |
| 623 |