contact 4 refactor

This commit is contained in:
Green Sky
2025-03-06 19:12:35 +01:00
parent 77a95811f2
commit c29aa523dc
24 changed files with 196 additions and 155 deletions

View File

@ -18,7 +18,7 @@
void renderAvatar(
const Theme& th,
ContactTextureCache& contact_tc,
const Contact3Handle c,
const ContactHandle4 c,
ImVec2 box
) {
// deploy dummy of same size and check visibility
@ -53,7 +53,7 @@ void renderAvatar(
bool renderContactBig(
const Theme& th,
ContactTextureCache& contact_tc,
const Contact3Handle c,
const ContactHandle4 c,
int line_height,
const bool unread,
const bool selectable,

View File

@ -4,7 +4,7 @@
#include "./theme.hpp"
#include <solanaceae/contact/contact_model3.hpp>
#include <solanaceae/contact/fwd.hpp>
enum class ThemeCol_Contact {
request_incoming,
@ -25,7 +25,7 @@ enum class ThemeCol_Contact {
void renderAvatar(
const Theme& th,
ContactTextureCache& contact_tc,
const Contact3Handle c,
const ContactHandle4 c,
ImVec2 box
);
@ -39,7 +39,7 @@ void renderAvatar(
bool renderContactBig(
const Theme& th,
ContactTextureCache& contact_tc,
const Contact3Handle c,
const ContactHandle4 c,
int line_height = 3,
const bool unread = false,
const bool selectable = false,

View File

@ -7,7 +7,7 @@
#include "../message_image_loader.hpp"
#include "../bitset_image_loader.hpp"
using ContactTextureCache = TextureCache<uint64_t, Contact3, ToxAvatarLoader>;
using ContactTextureCache = TextureCache<uint64_t, Contact4, ToxAvatarLoader>;
using MessageTextureCache = TextureCache<uint64_t, Message3Handle, MessageImageLoader>;
using BitsetTextureCache = TextureCache<uint64_t, ObjectHandle, BitsetImageLoader>;