Fri, 19 Jun 2026 17:23:28 +0200
add more icons
| 1160 | 1 | /* |
| 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. | |
| 3 | * | |
| 4 | * Copyright 2026 Olaf Wintermann. All rights reserved. | |
| 5 | * | |
| 6 | * Redistribution and use in source and binary forms, with or without | |
| 7 | * modification, are permitted provided that the following conditions are met: | |
| 8 | * | |
| 9 | * 1. Redistributions of source code must retain the above copyright | |
| 10 | * notice, this list of conditions and the following disclaimer. | |
| 11 | * | |
| 12 | * 2. Redistributions in binary form must reproduce the above copyright | |
| 13 | * notice, this list of conditions and the following disclaimer in the | |
| 14 | * documentation and/or other materials provided with the distribution. | |
| 15 | * | |
| 16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | |
| 17 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
| 18 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |
| 19 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE | |
| 20 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | |
| 21 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | |
| 22 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | |
| 23 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | |
| 24 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | |
| 25 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |
| 26 | * POSSIBILITY OF SUCH DAMAGE. | |
| 27 | */ | |
| 28 | ||
| 29 | #include "icons.h" | |
| 30 | ||
| 31 | const char* ui_icon_name(enum UiIconId icon_id) { | |
| 32 | switch(icon_id) { | |
|
1209
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
33 | case UI_ICON_ID_HOME : return UI_ICON_HOME; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
34 | case UI_ICON_ID_NEW_WINDOW : return UI_ICON_NEW_WINDOW; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
35 | case UI_ICON_ID_NEW_TAB : return UI_ICON_NEW_TAB; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
36 | case UI_ICON_ID_NEW_FOLDER : return UI_ICON_NEW_FOLDER; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
37 | case UI_ICON_ID_NEW_DOCUMENT : return UI_ICON_NEW_DOCUMENT; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
38 | case UI_ICON_ID_NEW_APPOINTMENT : return UI_ICON_NEW_APPOINTMENT; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
39 | case UI_ICON_ID_NEW_CHAT_MESSAGE : return UI_ICON_NEW_CHAT_MESSAGE; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
40 | case UI_ICON_ID_NEW_CONTACT : return UI_ICON_NEW_CONTACT; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
41 | case UI_ICON_ID_NEW_MAIL : return UI_ICON_NEW_MAIL; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
42 | case UI_ICON_ID_ADD_BOOKMARK : return UI_ICON_ADD_BOOKMARK; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
43 | case UI_ICON_ID_ADD_IMAGE : return UI_ICON_ADD_IMAGE; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
44 | case UI_ICON_ID_ADD_LINK : return UI_ICON_ADD_LINK; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
45 | case UI_ICON_ID_ADD_TEXT : return UI_ICON_ADD_TEXT; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
46 | case UI_ICON_ID_ADD : return UI_ICON_ADD; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
47 | case UI_ICON_ID_REMOVE : return UI_ICON_REMOVE; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
48 | case UI_ICON_ID_REFRESH : return UI_ICON_REFRESH; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
49 | case UI_ICON_ID_UPLOAD : return UI_ICON_UPLOAD; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
50 | case UI_ICON_ID_SAVE_LOCAL : return UI_ICON_SAVE_LOCAL; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
51 | case UI_ICON_ID_EDIT_COPY : return UI_ICON_EDIT_COPY; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
52 | case UI_ICON_ID_EDIT_CUT : return UI_ICON_EDIT_CUT; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
53 | case UI_ICON_ID_EDIT_DELETE : return UI_ICON_EDIT_DELETE; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
54 | case UI_ICON_ID_EDIT_PASTE : return UI_ICON_EDIT_PASTE ; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
55 | case UI_ICON_ID_UNDO : return UI_ICON_UNDO; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
56 | case UI_ICON_ID_REDO : return UI_ICON_REDO; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
57 | case UI_ICON_ID_SIDEBAR_LEFT : return UI_ICON_SIDEBAR_LEFT; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
58 | case UI_ICON_ID_SIDEBAR_RIGHT : return UI_ICON_SIDEBAR_RIGHT; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
59 | case UI_ICON_ID_GO_BACK : return UI_ICON_GO_BACK; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
60 | case UI_ICON_ID_GO_FORWARD : return UI_ICON_GO_FORWARD ; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
61 | case UI_ICON_ID_GO_UP : return UI_ICON_GO_UP; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
62 | case UI_ICON_ID_GO_DOWN : return UI_ICON_GO_DOWN; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
63 | case UI_ICON_ID_VIEW_LIST : return UI_ICON_VIEW_LIST; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
64 | case UI_ICON_ID_VIEW_GRID : return UI_ICON_VIEW_GRID; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
65 | case UI_ICON_ID_VIEW_DUAL : return UI_ICON_VIEW_DUAL; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
66 | case UI_ICON_ID_VIEW_FULLSCREEN : return UI_ICON_VIEW_FULLSCREEN; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
67 | case UI_ICON_ID_VIEW_RESTORE : return UI_ICON_VIEW_RESTORE; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
68 | case UI_ICON_ID_TEXT_BOLD : return UI_ICON_TEXT_BOLD; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
69 | case UI_ICON_ID_TEXT_ITALIC : return UI_ICON_TEXT_ITALIC; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
70 | case UI_ICON_ID_TEXT_UNDERLINE : return UI_ICON_TEXT_UNDERLINE; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
71 | case UI_ICON_ID_LIST_BULLET : return UI_ICON_LIST_BULLET ; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
72 | case UI_ICON_ID_LIST_ORDERED : return UI_ICON_LIST_ORDERED; |
|
31b2b5a23062
define new icons, add definitions for gtk and cocoa
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1204
diff
changeset
|
73 | case UI_ICON_ID_LIST_CHECK : return UI_ICON_LIST_CHECK; |
|
1211
0b43e00d3a80
add more icons
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1209
diff
changeset
|
74 | case UI_ICON_ID_CHECKBOX : return UI_ICON_CHECKBOX; |
|
0b43e00d3a80
add more icons
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1209
diff
changeset
|
75 | case UI_ICON_ID_STAR : return UI_ICON_STAR; |
|
0b43e00d3a80
add more icons
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1209
diff
changeset
|
76 | case UI_ICON_ID_VIEW_CONCEAL : return UI_ICON_VIEW_CONCEAL; |
|
0b43e00d3a80
add more icons
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1209
diff
changeset
|
77 | case UI_ICON_ID_SETTINGS : return UI_ICON_SETTINGS; |
|
0b43e00d3a80
add more icons
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1209
diff
changeset
|
78 | case UI_ICON_ID_MEDIA_PLAY : return UI_ICON_MEDIA_PLAY; |
|
0b43e00d3a80
add more icons
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1209
diff
changeset
|
79 | case UI_ICON_ID_MEDIA_STOP : return UI_ICON_MEDIA_STOP; |
|
0b43e00d3a80
add more icons
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1209
diff
changeset
|
80 | case UI_ICON_ID_MEDIA_PAUSE : return UI_ICON_MEDIA_PAUSE; |
|
0b43e00d3a80
add more icons
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1209
diff
changeset
|
81 | case UI_ICON_ID_MEDIA_SEEK_BACKWARD : return UI_ICON_MEDIA_SEEK_BACKWARD; |
|
0b43e00d3a80
add more icons
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1209
diff
changeset
|
82 | case UI_ICON_ID_MEDIA_SEEK_FORWARD : return UI_ICON_MEDIA_SEEK_FORWARD; |
|
0b43e00d3a80
add more icons
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1209
diff
changeset
|
83 | case UI_ICON_ID_MEDIA_SKIP_BACKWARD : return UI_ICON_MEDIA_SKIP_BACKWARD; |
|
0b43e00d3a80
add more icons
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1209
diff
changeset
|
84 | case UI_ICON_ID_MEDIA_SKIP_FORWARD : return UI_ICON_MEDIA_SKIP_FORWARD; |
|
0b43e00d3a80
add more icons
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1209
diff
changeset
|
85 | case UI_ICON_ID_CALL_START : return UI_ICON_CALL_START; |
|
0b43e00d3a80
add more icons
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1209
diff
changeset
|
86 | case UI_ICON_ID_CALL_STOP : return UI_ICON_CALL_STOP; |
|
0b43e00d3a80
add more icons
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1209
diff
changeset
|
87 | case UI_ICON_ID_CALL_INCOMING : return UI_ICON_CALL_INCOMING; |
|
0b43e00d3a80
add more icons
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1209
diff
changeset
|
88 | case UI_ICON_ID_CALL_OUTGOING : return UI_ICON_CALL_OUTGOING; |
|
0b43e00d3a80
add more icons
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1209
diff
changeset
|
89 | case UI_ICON_ID_MICROPHONE_ON : return UI_ICON_MICROPHONE_ON; |
|
0b43e00d3a80
add more icons
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1209
diff
changeset
|
90 | case UI_ICON_ID_MICROPHONE_OFF : return UI_ICON_MICROPHONE_OFF; |
|
0b43e00d3a80
add more icons
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1209
diff
changeset
|
91 | case UI_ICON_ID_LOCKED : return UI_ICON_LOCKED; |
|
0b43e00d3a80
add more icons
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1209
diff
changeset
|
92 | case UI_ICON_ID_UNLOCKED : return UI_ICON_UNLOCKED; |
|
0b43e00d3a80
add more icons
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1209
diff
changeset
|
93 | case UI_ICON_ID_SECURE : return UI_ICON_SECURE; |
|
0b43e00d3a80
add more icons
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1209
diff
changeset
|
94 | case UI_ICON_ID_INSECURE : return UI_ICON_INSECURE; |
| 1160 | 95 | } |
| 96 | return NULL; | |
| 97 | } |