contact 4 refactor
Some checks are pending
ContinuousDelivery / linux-ubuntu (push) Waiting to run
ContinuousDelivery / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android]) (push) Waiting to run
ContinuousDelivery / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android]) (push) Waiting to run
ContinuousDelivery / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android]) (push) Waiting to run
ContinuousDelivery / windows (push) Waiting to run
ContinuousDelivery / windows-asan (push) Waiting to run
ContinuousDelivery / dumpsyms (push) Blocked by required conditions
ContinuousDelivery / release (push) Blocked by required conditions
ContinuousIntegration / linux (push) Waiting to run
ContinuousIntegration / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android]) (push) Waiting to run
ContinuousIntegration / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android]) (push) Waiting to run
ContinuousIntegration / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android]) (push) Waiting to run
ContinuousIntegration / macos (push) Waiting to run
ContinuousIntegration / windows (push) Waiting to run

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>;