mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-09-28 14:49:51 -04:00
Bundle icons using the Qt resource system.
Simplify resource loading logic and enable reproducible builds. Fixes #2582
This commit is contained in:
parent
4ff781fa48
commit
b045160e4f
56 changed files with 630 additions and 548 deletions
|
@ -19,10 +19,6 @@ add_subdirectory(translations)
|
|||
file(GLOB wordlists_files "wordlists/*.wordlist")
|
||||
install(FILES ${wordlists_files} DESTINATION ${DATA_INSTALL_DIR}/wordlists)
|
||||
|
||||
file(GLOB DATABASE_ICONS icons/database/*.png)
|
||||
|
||||
install(FILES ${DATABASE_ICONS} DESTINATION ${DATA_INSTALL_DIR}/icons/database)
|
||||
|
||||
if(UNIX AND NOT APPLE AND NOT HAIKU)
|
||||
install(DIRECTORY icons/application/ DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor
|
||||
FILES_MATCHING PATTERN "keepassx*.png" PATTERN "keepassx*.svg"
|
||||
|
@ -39,13 +35,10 @@ if(APPLE)
|
|||
install(FILES macosx/keepassxc.icns DESTINATION ${DATA_INSTALL_DIR})
|
||||
endif()
|
||||
|
||||
install(FILES icons/application/256x256/apps/keepassxc.png DESTINATION ${DATA_INSTALL_DIR}/icons/application/256x256/apps)
|
||||
|
||||
install(DIRECTORY docs/ DESTINATION ${DATA_INSTALL_DIR}/docs FILES_MATCHING PATTERN "*.pdf")
|
||||
|
||||
install(DIRECTORY wizard/ DESTINATION ${DATA_INSTALL_DIR}/wizard FILES_MATCHING PATTERN "*.png")
|
||||
|
||||
install(DIRECTORY icons/application/ DESTINATION ${DATA_INSTALL_DIR}/icons/application
|
||||
FILES_MATCHING PATTERN "*.png" PATTERN "*.svg")
|
||||
|
||||
add_custom_target(icons
|
||||
# SVG to PNGs for KeePassXC
|
||||
COMMAND inkscape -z -w 16 -h 16
|
||||
|
|
45
share/icons/application/index.theme
Normal file
45
share/icons/application/index.theme
Normal file
|
@ -0,0 +1,45 @@
|
|||
[Icon Theme]
|
||||
Name=application
|
||||
Comment=KeePassXC Application Icon Theme
|
||||
|
||||
Directories=256x256/apps,scalable/actions,scalable/apps,scalable/categories,scalable/mimetypes,scalable/status
|
||||
|
||||
[scalable/actions]
|
||||
Size=48
|
||||
Type=Scalable
|
||||
MinSize=1
|
||||
MaxSize=256
|
||||
Context=Actions
|
||||
|
||||
[scalable/apps]
|
||||
Size=48
|
||||
Type=Scalable
|
||||
MinSize=1
|
||||
MaxSize=256
|
||||
Context=Applications
|
||||
|
||||
[scalable/categories]
|
||||
Size=48
|
||||
Type=Scalable
|
||||
MinSize=1
|
||||
MaxSize=256
|
||||
Context=Categories
|
||||
|
||||
[scalable/mimetypes]
|
||||
Size=48
|
||||
Type=Scalable
|
||||
MinSize=1
|
||||
MaxSize=256
|
||||
Context=MimeTypes
|
||||
|
||||
[scalable/status]
|
||||
Size=48
|
||||
Type=Scalable
|
||||
MinSize=1
|
||||
MaxSize=256
|
||||
Context=Status
|
||||
|
||||
[256x256/apps]
|
||||
Size=256
|
||||
Type=Fixed
|
||||
Context=Applications
|
|
@ -1,92 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
version="1.1"
|
||||
width="108.7505"
|
||||
height="91.166321"
|
||||
viewBox="0 0 87.000389 72.933061"
|
||||
id="svg2"
|
||||
sodipodi:docname="freedesktop.svg"
|
||||
inkscape:version="0.92.4 5da689c313, 2019-01-14">
|
||||
<defs
|
||||
id="defs14" />
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="3840"
|
||||
inkscape:window-height="2106"
|
||||
id="namedview12"
|
||||
showgrid="false"
|
||||
fit-margin-top="0"
|
||||
fit-margin-left="0"
|
||||
fit-margin-right="0"
|
||||
fit-margin-bottom="0"
|
||||
inkscape:zoom="1.7980996"
|
||||
inkscape:cx="-97.45169"
|
||||
inkscape:cy="25.551539"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg2" />
|
||||
<metadata
|
||||
id="metadata57">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
transform="translate(0.01402783,0.01402783)"
|
||||
id="g37"
|
||||
style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-width:2.45880008;stroke-miterlimit:4">
|
||||
<g
|
||||
id="g39">
|
||||
<path
|
||||
d="M 85.277,40.796 C 87.335,48.68 82.61,56.738 74.726,58.795 L 27.143,71.21 C 19.259,73.267 11.2,68.543 9.143,60.658 L 1.695,32.108 C -0.362,24.224 4.362,16.166 12.246,14.109 L 59.83,1.695 c 7.884,-2.057 15.942,2.667 17.999,10.551 l 7.449,28.55 z"
|
||||
id="path41"
|
||||
style="stroke:#bababa"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
d="m 80.444,39.778 c 1.749,7.854 -1.816,13.621 -9.504,15.447 L 28.704,66.245 C 21.135,68.641 14.615,65.064 12.866,57.409 L 6.53,33.127 C 4.781,24.982 7.239,20.238 16.033,17.68 L 58.27,6.661 c 8.144,-1.826 14.089,1.363 15.838,8.835 z"
|
||||
id="path43"
|
||||
style="fill:#000000;stroke:none"
|
||||
inkscape:connector-curvature="0" />
|
||||
</g>
|
||||
<path
|
||||
d="M 45.542,51.793 24.104,31.102 62.204,26.709 Z"
|
||||
id="path45"
|
||||
style="opacity:0.5;fill:none;stroke:#ffffff"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
d="m 72.325,28.769 c 0.405,1.55 -0.525,3.136 -2.075,3.541 l -12.331,3.217 c -1.551,0.404 -3.137,-0.525 -3.542,-2.076 L 52.082,24.65 c -0.405,-1.551 0.524,-3.137 2.076,-3.542 l 12.33,-3.217 c 1.551,-0.405 3.137,0.525 3.542,2.076 l 2.295,8.801 z"
|
||||
id="path47"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
d="m 36.51,33.625 c 0.496,1.9 -0.645,3.844 -2.545,4.34 l -15.112,3.943 c -1.901,0.496 -3.845,-0.644 -4.34,-2.544 L 11.699,28.578 c -0.496,-1.901 0.644,-3.844 2.544,-4.34 l 15.113,-3.942 c 1.901,-0.496 3.845,0.643 4.34,2.544 l 2.814,10.786 z"
|
||||
id="path49"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
d="m 52.493,53.208 c 0.278,1.065 -0.36,2.154 -1.425,2.432 L 42.6,57.848 c -1.064,0.277 -2.153,-0.36 -2.431,-1.426 l -1.577,-6.043 c -0.277,-1.064 0.36,-2.153 1.425,-2.432 l 8.468,-2.209 c 1.064,-0.277 2.154,0.361 2.431,1.426 l 1.577,6.043 z"
|
||||
id="path51"
|
||||
inkscape:connector-curvature="0" />
|
||||
</g>
|
||||
</svg>
|
||||
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>freedesktop.org icon</title><path d="M17.702 1.934a4.375 4.375 0 0 0-1.264.14L3.3 5.502a4.418 4.418 0 0 0-3.156 5.384L2.2 18.77a4.418 4.418 0 0 0 5.384 3.157l13.139-3.429c2.212-.577 3.573-2.745 3.222-4.958h.045l-.111-.425-2.057-7.884a4.421 4.421 0 0 0-4.12-3.296zm-.02.677a3.73 3.73 0 0 1 3.483 2.791l1.946 7.458.11.425c.523 2-.67 4.034-2.67 4.555L7.412 21.268a3.729 3.729 0 0 1-4.555-2.67L.8 10.715a3.729 3.729 0 0 1 2.671-4.556L16.61 2.731a3.77 3.77 0 0 1 1.072-.12zm-.392 1.024a5.386 5.386 0 0 0-1.197.139L4.431 6.817c-2.428.706-3.107 2.016-2.624 4.265l1.75 6.704c.482 2.114 2.282 3.102 4.372 2.44l11.662-3.043c2.123-.504 3.107-2.096 2.624-4.265l-1.749-6.704c-.392-1.677-1.55-2.572-3.176-2.579zm1.25 3.554a.46.46 0 0 1 .472.345l.623 2.388.01.042a.457.457 0 0 1-.33.564l-3.405.888a.457.457 0 0 1-.564-.33l-.633-2.43a.457.457 0 0 1 .33-.565l3.405-.888a.468.468 0 0 1 .093-.014zm-10.216.658a.64.64 0 0 1 .655.48l.777 2.978a.638.638 0 0 1-.46.784l-4.172 1.089a.638.638 0 0 1-.784-.46L3.563 9.74a.638.638 0 0 1 .46-.785l4.172-1.088a.646.646 0 0 1 .13-.02zm5.859 1.466l.173.663-4.12.476-.174-.663zm.898 2.542c.183.147.41.237.648.252l-1.57 2.362a.892.892 0 0 0-.642-.26zm-5.626.894l2.032 1.96-.52.136a.867.867 0 0 0-.22.095l-2.062-1.99zm4.064 2.137a.209.209 0 0 1 .215.157l.435 1.669a.206.206 0 0 1-.15.258l-2.338.61a.206.206 0 0 1-.257-.152l-.436-1.668a.206.206 0 0 1 .151-.258l2.338-.61a.207.207 0 0 1 .042-.006Z"/></svg>
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 1.5 KiB |
152
share/icons/icons.qrc
Normal file
152
share/icons/icons.qrc
Normal file
|
@ -0,0 +1,152 @@
|
|||
<!DOCTYPE RCC>
|
||||
<RCC version="1.0">
|
||||
<qresource prefix="/icons">
|
||||
<file>application/index.theme</file>
|
||||
|
||||
<file>application/256x256/apps/keepassxc.png</file>
|
||||
|
||||
<file>application/scalable/actions/application-exit.svg</file>
|
||||
<file>application/scalable/actions/auto-type.svg</file>
|
||||
<file>application/scalable/actions/bugreport.svg</file>
|
||||
<file>application/scalable/actions/chronometer.svg</file>
|
||||
<file>application/scalable/actions/configure.svg</file>
|
||||
<file>application/scalable/actions/database-change-key.svg</file>
|
||||
<file>application/scalable/actions/database-lock.svg</file>
|
||||
<file>application/scalable/actions/database-merge.svg</file>
|
||||
<file>application/scalable/actions/dialog-close.svg</file>
|
||||
<file>application/scalable/actions/dialog-ok.svg</file>
|
||||
<file>application/scalable/actions/document-close.svg</file>
|
||||
<file>application/scalable/actions/document-edit.svg</file>
|
||||
<file>application/scalable/actions/document-new.svg</file>
|
||||
<file>application/scalable/actions/document-open.svg</file>
|
||||
<file>application/scalable/actions/document-properties.svg</file>
|
||||
<file>application/scalable/actions/document-save.svg</file>
|
||||
<file>application/scalable/actions/document-save-as.svg</file>
|
||||
<file>application/scalable/actions/donate.svg</file>
|
||||
<file>application/scalable/actions/edit-clear-locationbar-ltr.svg</file>
|
||||
<file>application/scalable/actions/edit-clear-locationbar-rtl.svg</file>
|
||||
<file>application/scalable/actions/entry-clone.svg</file>
|
||||
<file>application/scalable/actions/entry-delete.svg</file>
|
||||
<file>application/scalable/actions/entry-edit.svg</file>
|
||||
<file>application/scalable/actions/entry-new.svg</file>
|
||||
<file>application/scalable/actions/favicon-download.svg</file>
|
||||
<file>application/scalable/actions/getting-started.svg</file>
|
||||
<file>application/scalable/actions/group-delete.svg</file>
|
||||
<file>application/scalable/actions/group-edit.svg</file>
|
||||
<file>application/scalable/actions/group-empty-trash.svg</file>
|
||||
<file>application/scalable/actions/group-new.svg</file>
|
||||
<file>application/scalable/actions/health.svg</file>
|
||||
<file>application/scalable/actions/help-about.svg</file>
|
||||
<file>application/scalable/actions/key-enter.svg</file>
|
||||
<file>application/scalable/actions/keyboard-shortcuts.svg</file>
|
||||
<file>application/scalable/actions/message-close.svg</file>
|
||||
<file>application/scalable/actions/object-locked.svg</file>
|
||||
<file>application/scalable/actions/object-unlocked.svg</file>
|
||||
<file>application/scalable/actions/paperclip.svg</file>
|
||||
<file>application/scalable/actions/password-copy.svg</file>
|
||||
<file>application/scalable/actions/password-generate.svg</file>
|
||||
<file>application/scalable/actions/password-generator.svg</file>
|
||||
<file>application/scalable/actions/password-show-off.svg</file>
|
||||
<file>application/scalable/actions/password-show-on.svg</file>
|
||||
<file>application/scalable/actions/sort-alphabetical-ascending.svg</file>
|
||||
<file>application/scalable/actions/sort-alphabetical-descending.svg</file>
|
||||
<file>application/scalable/actions/statistics.svg</file>
|
||||
<file>application/scalable/actions/system-help.svg</file>
|
||||
<file>application/scalable/actions/system-search.svg</file>
|
||||
<file>application/scalable/actions/system-software-update.svg</file>
|
||||
<file>application/scalable/actions/url-copy.svg</file>
|
||||
<file>application/scalable/actions/user-guide.svg</file>
|
||||
<file>application/scalable/actions/username-copy.svg</file>
|
||||
<file>application/scalable/actions/view-history.svg</file>
|
||||
<file>application/scalable/actions/web.svg</file>
|
||||
|
||||
<file>application/scalable/apps/freedesktop.svg</file>
|
||||
<file>application/scalable/apps/internet-web-browser.svg</file>
|
||||
<file>application/scalable/apps/keepassxc.svg</file>
|
||||
<file>application/scalable/apps/keepassxc-dark.svg</file>
|
||||
<file>application/scalable/apps/keepassxc-locked.svg</file>
|
||||
<file>application/scalable/apps/keepassxc-unlocked.svg</file>
|
||||
<file>application/scalable/apps/preferences-desktop-icons.svg</file>
|
||||
<file>application/scalable/apps/preferences-system-network-sharing.svg</file>
|
||||
<file>application/scalable/apps/utilities-terminal.svg</file>
|
||||
|
||||
<file>application/scalable/categories/preferences-other.svg</file>
|
||||
|
||||
<file>application/scalable/mimetypes/application-x-keepassxc.svg</file>
|
||||
|
||||
<file>application/scalable/status/dialog-error.svg</file>
|
||||
<file>application/scalable/status/dialog-information.svg</file>
|
||||
<file>application/scalable/status/dialog-warning.svg</file>
|
||||
<file>application/scalable/status/security-high.svg</file>
|
||||
|
||||
<file>database/C00_Password.png</file>
|
||||
<file>database/C01_Package_Network.png</file>
|
||||
<file>database/C02_MessageBox_Warning.png</file>
|
||||
<file>database/C03_Server.png</file>
|
||||
<file>database/C04_Klipper.png</file>
|
||||
<file>database/C05_Edu_Languages.png</file>
|
||||
<file>database/C06_KCMDF.png</file>
|
||||
<file>database/C07_Kate.png</file>
|
||||
<file>database/C08_Socket.png</file>
|
||||
<file>database/C09_Identity.png</file>
|
||||
<file>database/C10_Kontact.png</file>
|
||||
<file>database/C11_Camera.png</file>
|
||||
<file>database/C12_IRKickFlash.png</file>
|
||||
<file>database/C13_KGPG_Key3.png</file>
|
||||
<file>database/C14_Laptop_Power.png</file>
|
||||
<file>database/C15_Scanner.png</file>
|
||||
<file>database/C16_Mozilla_Firebird.png</file>
|
||||
<file>database/C17_CDROM_Unmount.png</file>
|
||||
<file>database/C18_Display.png</file>
|
||||
<file>database/C19_Mail_Generic.png</file>
|
||||
<file>database/C20_Misc.png</file>
|
||||
<file>database/C21_KOrganizer.png</file>
|
||||
<file>database/C22_ASCII.png</file>
|
||||
<file>database/C23_Icons.png</file>
|
||||
<file>database/C24_Connect_Established.png</file>
|
||||
<file>database/C25_Folder_Mail.png</file>
|
||||
<file>database/C26_FileSave.png</file>
|
||||
<file>database/C27_NFS_Unmount.png</file>
|
||||
<file>database/C28_QuickTime.png</file>
|
||||
<file>database/C29_KGPG_Term.png</file>
|
||||
<file>database/C30_Konsole.png</file>
|
||||
<file>database/C31_FilePrint.png</file>
|
||||
<file>database/C32_FSView.png</file>
|
||||
<file>database/C33_Run.png</file>
|
||||
<file>database/C34_Configure.png</file>
|
||||
<file>database/C35_KRFB.png</file>
|
||||
<file>database/C36_Ark.png</file>
|
||||
<file>database/C37_KPercentage.png</file>
|
||||
<file>database/C38_Samba_Unmount.png</file>
|
||||
<file>database/C39_History.png</file>
|
||||
<file>database/C40_Mail_Find.png</file>
|
||||
<file>database/C41_VectorGfx.png</file>
|
||||
<file>database/C42_KCMMemory.png</file>
|
||||
<file>database/C43_EditTrash.png</file>
|
||||
<file>database/C44_KNotes.png</file>
|
||||
<file>database/C45_Cancel.png</file>
|
||||
<file>database/C46_Help.png</file>
|
||||
<file>database/C47_KPackage.png</file>
|
||||
<file>database/C48_Folder.png</file>
|
||||
<file>database/C49_Folder_Blue_Open.png</file>
|
||||
<file>database/C50_Folder_Tar.png</file>
|
||||
<file>database/C51_Decrypted.png</file>
|
||||
<file>database/C52_Encrypted.png</file>
|
||||
<file>database/C53_Apply.png</file>
|
||||
<file>database/C54_Signature.png</file>
|
||||
<file>database/C55_Thumbnail.png</file>
|
||||
<file>database/C56_KAddressBook.png</file>
|
||||
<file>database/C57_View_Text.png</file>
|
||||
<file>database/C58_KGPG.png</file>
|
||||
<file>database/C59_Package_Development.png</file>
|
||||
<file>database/C60_KFM_Home.png</file>
|
||||
<file>database/C61_Services.png</file>
|
||||
<file>database/C62_Tux.png</file>
|
||||
<file>database/C63_Feather.png</file>
|
||||
<file>database/C64_Apple.png</file>
|
||||
<file>database/C65_W.png</file>
|
||||
<file>database/C66_Money.png</file>
|
||||
<file>database/C67_Certificate.png</file>
|
||||
<file>database/C68_BlackBerry.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
6
share/wizard/wizard.qrc
Normal file
6
share/wizard/wizard.qrc
Normal file
|
@ -0,0 +1,6 @@
|
|||
<!DOCTYPE RCC>
|
||||
<RCC version="1.0">
|
||||
<qresource prefix="/wizard">
|
||||
<file>background-pixmap.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
Loading…
Add table
Add a link
Reference in a new issue