Compare commits
No commits in common. "0b6fdeec551f7c03557e420c31eb3fb673797a58" and "bfbeafddf7731be0d65dc0550dc93b5d1941f332" have entirely different histories.
0b6fdeec55
...
bfbeafddf7
20
.github/workflows/ci.yml
vendored
20
.github/workflows/ci.yml
vendored
@ -23,13 +23,8 @@ jobs:
|
|||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: sudo apt update && sudo apt -y install libsodium-dev cmake libxext-dev
|
run: sudo apt update && sudo apt -y install libsodium-dev cmake libxext-dev
|
||||||
|
|
||||||
- name: ccache
|
|
||||||
uses: hendrikmuhs/ccache-action@v1.2
|
|
||||||
with:
|
|
||||||
key: ${{github.event.repository.name}}-${{github.job}}
|
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j 4 -t tomato
|
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j 4 -t tomato
|
||||||
@ -117,13 +112,8 @@ jobs:
|
|||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: brew install libsodium
|
run: brew install libsodium
|
||||||
|
|
||||||
- name: ccache
|
|
||||||
uses: hendrikmuhs/ccache-action@v1.2
|
|
||||||
with:
|
|
||||||
key: ${{github.event.repository.name}}-${{github.job}}
|
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j 4 -t tomato
|
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j 4 -t tomato
|
||||||
@ -158,12 +148,6 @@ jobs:
|
|||||||
## sdl_image vendored needs nasm for dav1d
|
## sdl_image vendored needs nasm for dav1d
|
||||||
#- uses: ilammy/setup-nasm@v1
|
#- uses: ilammy/setup-nasm@v1
|
||||||
|
|
||||||
#- name: ccache
|
|
||||||
# uses: hendrikmuhs/ccache-action@v1.2
|
|
||||||
# with:
|
|
||||||
# variant: sccache
|
|
||||||
# key: ${{github.event.repository.name}}-${{github.job}}
|
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
run: cmake -G Ninja -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static -DSDLIMAGE_VENDORED=OFF -DSDLIMAGE_DEPS_SHARED=OFF -DSDLIMAGE_JXL=OFF -DSDLIMAGE_AVIF=OFF -DPKG_CONFIG_EXECUTABLE=C:/vcpkg/installed/x64-windows/tools/pkgconf/pkgconf.exe
|
run: cmake -G Ninja -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static -DSDLIMAGE_VENDORED=OFF -DSDLIMAGE_DEPS_SHARED=OFF -DSDLIMAGE_JXL=OFF -DSDLIMAGE_AVIF=OFF -DPKG_CONFIG_EXECUTABLE=C:/vcpkg/installed/x64-windows/tools/pkgconf/pkgconf.exe
|
||||||
|
|
||||||
|
2
external/solanaceae_message_serializer
vendored
2
external/solanaceae_message_serializer
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 491c30988e572fa172481ea77db300afcf0236ef
|
Subproject commit b1becb2128224fe63b7dff2218ecc66e9b92bc5b
|
2
external/solanaceae_object_store
vendored
2
external/solanaceae_object_store
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 0ba56d428fb5e700a00cf016d368c21143c46857
|
Subproject commit e5b3546292c906da4680f838c235e3464476917b
|
@ -18,8 +18,6 @@ enum class ThemeCol_Contact {
|
|||||||
unread_muted,
|
unread_muted,
|
||||||
|
|
||||||
icon_backdrop,
|
icon_backdrop,
|
||||||
|
|
||||||
ft_have_all,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void renderAvatar(
|
void renderAvatar(
|
||||||
|
@ -53,9 +53,6 @@ Theme getDefaultThemeDark(void) {
|
|||||||
|
|
||||||
t.setColor<ThemeCol_Contact::icon_backdrop >({0.0f, 0.0f, 0.0f, 0.4f});
|
t.setColor<ThemeCol_Contact::icon_backdrop >({0.0f, 0.0f, 0.0f, 0.4f});
|
||||||
|
|
||||||
// TODO: add base ft? -> PlotHistogram
|
|
||||||
t.setColor<ThemeCol_Contact::ft_have_all >({0.35f, 0.84f, 0.22f, 1.0f});
|
|
||||||
|
|
||||||
return t;
|
return t;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1092,8 +1092,6 @@ void ChatGui4::renderMessageBodyFile(Message3Registry& reg, const Message3 e) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const bool local_have_all = o.all_of<ObjComp::F::TagLocalHaveAll>();
|
|
||||||
|
|
||||||
ImGui::BeginGroup();
|
ImGui::BeginGroup();
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
@ -1117,7 +1115,7 @@ void ChatGui4::renderMessageBodyFile(Message3Registry& reg, const Message3 e) {
|
|||||||
// TODO: missing other states
|
// TODO: missing other states
|
||||||
ImGui::TextUnformatted("running");
|
ImGui::TextUnformatted("running");
|
||||||
}
|
}
|
||||||
if (local_have_all) {
|
if (o.all_of<ObjComp::F::TagLocalHaveAll>()) {
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::TextUnformatted("(have all)");
|
ImGui::TextUnformatted("(have all)");
|
||||||
}
|
}
|
||||||
@ -1125,7 +1123,7 @@ void ChatGui4::renderMessageBodyFile(Message3Registry& reg, const Message3 e) {
|
|||||||
// if in offered state
|
// if in offered state
|
||||||
// paused, never started
|
// paused, never started
|
||||||
if (
|
if (
|
||||||
!local_have_all &&
|
!o.all_of<ObjComp::F::TagLocalHaveAll>() &&
|
||||||
//reg.all_of<Message::Components::Transfer::TagReceiving>(e) &&
|
//reg.all_of<Message::Components::Transfer::TagReceiving>(e) &&
|
||||||
o.all_of<ObjComp::Ephemeral::File::TagTransferPaused>() &&
|
o.all_of<ObjComp::Ephemeral::File::TagTransferPaused>() &&
|
||||||
// TODO: how does restarting a broken/incomplete transfer look like?
|
// TODO: how does restarting a broken/incomplete transfer look like?
|
||||||
@ -1156,7 +1154,7 @@ void ChatGui4::renderMessageBodyFile(Message3Registry& reg, const Message3 e) {
|
|||||||
// hacky
|
// hacky
|
||||||
const auto* fts = o.try_get<ObjComp::Ephemeral::File::TransferStats>();
|
const auto* fts = o.try_get<ObjComp::Ephemeral::File::TransferStats>();
|
||||||
if (fts != nullptr && o.any_of<ObjComp::F::SingleInfo, ObjComp::F::CollectionInfo>()) {
|
if (fts != nullptr && o.any_of<ObjComp::F::SingleInfo, ObjComp::F::CollectionInfo>()) {
|
||||||
const bool upload = local_have_all && fts->total_down <= 0;
|
const bool upload = o.all_of<ObjComp::F::TagLocalHaveAll>() && fts->total_down <= 0;
|
||||||
|
|
||||||
const int64_t total_size =
|
const int64_t total_size =
|
||||||
o.all_of<ObjComp::F::SingleInfo>() ?
|
o.all_of<ObjComp::F::SingleInfo>() ?
|
||||||
@ -1212,11 +1210,8 @@ void ChatGui4::renderMessageBodyFile(Message3Registry& reg, const Message3 e) {
|
|||||||
std::snprintf(overlay_buf, sizeof(overlay_buf), "%.1f%%", fraction * 100 + 0.01f);
|
std::snprintf(overlay_buf, sizeof(overlay_buf), "%.1f%%", fraction * 100 + 0.01f);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (local_have_all) {
|
|
||||||
ImGui::PushStyleColor(ImGuiCol_PlotHistogram, _theme.getColor<ThemeCol_Contact::ft_have_all>());
|
|
||||||
}
|
|
||||||
if (
|
if (
|
||||||
(!upload && !local_have_all && o.all_of<ObjComp::F::LocalHaveBitset>()) ||
|
(!upload && !o.all_of<ObjComp::F::TagLocalHaveAll>() && o.all_of<ObjComp::F::LocalHaveBitset>()) ||
|
||||||
(upload && o.all_of<ObjComp::F::RemoteHaveBitset>())
|
(upload && o.all_of<ObjComp::F::RemoteHaveBitset>())
|
||||||
) {
|
) {
|
||||||
ImGui::BeginGroup();
|
ImGui::BeginGroup();
|
||||||
@ -1266,9 +1261,6 @@ void ChatGui4::renderMessageBodyFile(Message3Registry& reg, const Message3 e) {
|
|||||||
overlay_buf
|
overlay_buf
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (local_have_all) {
|
|
||||||
ImGui::PopStyleColor();
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
// infinite scrolling progressbar fallback
|
// infinite scrolling progressbar fallback
|
||||||
ImGui::TextUnformatted(" ??");
|
ImGui::TextUnformatted(" ??");
|
||||||
@ -1390,7 +1382,7 @@ void ChatGui4::renderMessageBodyFile(Message3Registry& reg, const Message3 e) {
|
|||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
|
|
||||||
// TODO: better way to dif up/down
|
// TODO: better way to dif up/down
|
||||||
if (!local_have_all) {
|
if (!o.all_of<ObjComp::F::TagLocalHaveAll>()) {
|
||||||
if (ImGui::BeginMenu("dowload priority")) {
|
if (ImGui::BeginMenu("dowload priority")) {
|
||||||
using Priority = ObjComp::Ephemeral::File::DownloadPriority::Priority;
|
using Priority = ObjComp::Ephemeral::File::DownloadPriority::Priority;
|
||||||
auto& p_comp = o.get_or_emplace<ObjComp::Ephemeral::File::DownloadPriority>();
|
auto& p_comp = o.get_or_emplace<ObjComp::Ephemeral::File::DownloadPriority>();
|
||||||
@ -1428,7 +1420,7 @@ void ChatGui4::renderMessageBodyFile(Message3Registry& reg, const Message3 e) {
|
|||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ImGui::BeginMenu("forward", local_have_all)) {
|
if (ImGui::BeginMenu("forward", o.all_of<ObjComp::F::TagLocalHaveAll>())) {
|
||||||
for (const auto& c : _cr.view<Contact::Components::TagBig>()) {
|
for (const auto& c : _cr.view<Contact::Components::TagBig>()) {
|
||||||
// filter
|
// filter
|
||||||
if (_cr.any_of<Contact::Components::RequestIncoming, Contact::Components::TagRequestOutgoing>(c)) {
|
if (_cr.any_of<Contact::Components::RequestIncoming, Contact::Components::TagRequestOutgoing>(c)) {
|
||||||
|
@ -370,7 +370,7 @@ Screen* StartScreen::render(float, bool&) {
|
|||||||
if (ImGui::Checkbox("local discovery", &value)) {
|
if (ImGui::Checkbox("local discovery", &value)) {
|
||||||
_conf.set("tox", "local_discovery_enabled", value);
|
_conf.set("tox", "local_discovery_enabled", value);
|
||||||
}
|
}
|
||||||
ImGui::SetItemTooltip("Perform broadcasts in your local networks to find other peers.\nOnly meaningful if udp is enabled.");
|
ImGui::SetItemTooltip("Perform broadcasts in your local networks to fine other peers.\nOnly meaningful if udp is enabled.");
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui::SeparatorText("tcp relay server");
|
ImGui::SeparatorText("tcp relay server");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user