(irc) Add protocol icon

This one borrowed from the Haiku tree― /data/artwork/icons/App_Chat
This commit is contained in:
Jaidyn Ann 2021-08-11 17:40:03 -05:00
parent 8aa4ed3e3c
commit ca704cb7b8
6 changed files with 32 additions and 2 deletions

BIN
data/icons/protocols/IRC Normal file

Binary file not shown.

View File

@ -0,0 +1,16 @@
resource vector_icon {
$"6E636966040500020106033D835C3C19B2BA8B0B3C20794769624A510E00FFFF"
$"FFB4FFE405FFFFA405020106023D835C3C19B2BA8B0B3C20794769624A510E00"
$"FFE405FFFFA405020106033D429E3C5148BB5ADA3C5C1B4A23AA46EC1800FFFF"
$"FFB47FE583FF04B10C0902093F404644383C273F2E3A244122482245224D2755"
$"245126572256245725582A5828592C5A315C2F5B345D3C5E385E425E4957475C"
$"4D4E02043F4044433D3FBC95BE953B3D333D3D493844424E4A5148534A4A0403"
$"3B2F4E2F4E2D4E2A4D2F532D522F530003334F334F364F345337533755325636"
$"59325602085645C8FEC3AFCA30C0E55E3A5E405EBA4D52B58359B71B4AB38537"
$"B51D3EB31FBA16B69933353130363E4A4641444D475346C657C27B554BCB01C6"
$"35584F5A4F080239BA0539BA6B0802BD1CBC1DBD2FBCA908023E37423904032E"
$"4535473C4739473F4540070A000100123FFFFE2FDACEAFDACE3FFFFE3AB6A5B8"
$"4CC101178400040A010100000A020101000A000202031001178210040A000104"
$"1001178400040A030104000A000407050608100117821004"
};

View File

@ -12,6 +12,8 @@
#include <SecureSocket.h> #include <SecureSocket.h>
#include <Socket.h> #include <Socket.h>
#include <libinterface/BitmapUtils.h>
#include <ChatProtocolMessages.h> #include <ChatProtocolMessages.h>
#include <Flags.h> #include <Flags.h>
@ -222,6 +224,13 @@ IrcProtocol::SettingsTemplate(const char* name)
} }
BBitmap*
IrcProtocol::Icon() const
{
return ReadNodeIcon(fAddOnPath.Path(), B_LARGE_ICON, true);
}
status_t status_t
IrcProtocol::Loop() IrcProtocol::Loop()
{ {

View File

@ -38,6 +38,8 @@ public:
virtual const char* Signature() const { return "irc"; } virtual const char* Signature() const { return "irc"; }
virtual const char* FriendlySignature() const { return "IRC"; } virtual const char* FriendlySignature() const { return "IRC"; }
virtual BBitmap* Icon() const;
virtual void SetAddOnPath(BPath path) { fAddOnPath = path; } virtual void SetAddOnPath(BPath path) { fAddOnPath = path; }
virtual BPath AddOnPath() { return fAddOnPath; } virtual BPath AddOnPath() { return fAddOnPath; }

View File

@ -39,7 +39,8 @@ SRCS = \
# Specify the resource definition files to use. Full or relative paths can be # Specify the resource definition files to use. Full or relative paths can be
# used. # used.
RDEFS = \ RDEFS = \
# protocols/irc/irc.rdef \ data/icons/protocols/IRC.rdef \
protocols/irc/irc.rdef \
# Specify the resource files to use. Full or relative paths can be used. # Specify the resource files to use. Full or relative paths can be used.
# Both RDEFS and RSRCS can be utilized in the same Makefile. # Both RDEFS and RSRCS can be utilized in the same Makefile.
@ -136,3 +137,5 @@ include $(DEVEL_DIRECTORY)/etc/makefile-engine
include Makefile.common include Makefile.common
include protocols/Makefile.common include protocols/Makefile.common
CATKEYS_DIR = locales/irc

View File

@ -7,7 +7,7 @@ resource app_version {
variety = B_APPV_ALPHA, variety = B_APPV_ALPHA,
internal = 0, internal = 0,
short_info = "IRC Protocol AddOn", short_info = "Cardie IRC add-on",
long_info = "©2021 Jaidyn Levesque" long_info = "©2021 Jaidyn Levesque"
}; };