Skip to content

FinceptTerminal is a modern finance application offering advanced market analytics, investment research, and economic data tools, designed for interactive exploration and data-driven decision-making in a user-friendly environment.

workflow update

tilakpatel22e553d912c3e6
diff --git a/.github/workflows/build-cpp.yml b/.github/workflows/build-cpp.yml
index 446da3994..fa7e95353 100644
--- a/.github/workflows/build-cpp.yml
+++ b/.github/workflows/build-cpp.yml
@@ -104,46 +104,20 @@ jobs:
pkg-config zip
# ---- OpenSSL dev libs (Windows) ----
- # windows-2022 runners ship a "Light" OpenSSL with no .lib files.
- # Install the full version via winget (pre-installed on windows-2022 runners).
+ # windows-2022 runners ship only the "Light" OpenSSL (no .lib files).
+ # vcpkg is pre-installed on every windows-2022 runner at C:\vcpkg.
- name: Install OpenSSL (Windows)
if: runner.os == 'Windows'
- shell: pwsh
+ shell: bash
run: |
- $ErrorActionPreference = 'Continue'
- # Try winget first (reliable on windows-2022)
- $installed = $false
- try {
- winget install --id ShiningLight.OpenSSL.Dev --exact --silent `
- --accept-package-agreements --accept-source-agreements 2>&1
- $root = if (Test-Path "C:\Program Files\OpenSSL-Win64\lib\libcrypto.lib") {
- "C:\Program Files\OpenSSL-Win64"
- } elseif (Test-Path "C:\Program Files\OpenSSL\lib\libcrypto.lib") {
- "C:\Program Files\OpenSSL"
- } else { $null }
- if ($root) {
- echo "OPENSSL_ROOT_DIR=$root" >> $env:GITHUB_ENV
- Write-Host "OpenSSL installed via winget at: $root"
- $installed = $true
- }
- } catch { Write-Host "winget attempt failed: $_" }
-
- if (-not $installed) {
- # Fallback: Scoop (also pre-installed on windows-2022)
- try {
- scoop install openssl 2>&1
- $scoopRoot = "$env:USERPROFILE\scoop\apps\openssl\current"
- if (Test-Path "$scoopRoot\lib\libcrypto.lib") {
- echo "OPENSSL_ROOT_DIR=$scoopRoot" >> $env:GITHUB_ENV
- Write-Host "OpenSSL installed via scoop at: $scoopRoot"
- $installed = $true
- }
- } catch { Write-Host "scoop attempt failed: $_" }
- }
-
- if (-not $installed) {
- Write-Host "::warning::Could not install OpenSSL dev libs — CMake will attempt its own search"
- }
+ set -euo pipefail
+ VCPKG_ROOT="${VCPKG_INSTALLATION_ROOT:-C:/vcpkg}"
+ echo "Using vcpkg at: $VCPKG_ROOT"
+ "$VCPKG_ROOT/vcpkg" install openssl:x64-windows --no-print-usage
+ OPENSSL_DIR="$VCPKG_ROOT/installed/x64-windows"
+ echo "OPENSSL_ROOT_DIR=$OPENSSL_DIR" >> "$GITHUB_ENV"
+ echo "OpenSSL installed at: $OPENSSL_DIR"
+ ls "$OPENSSL_DIR/lib/libcrypto.lib" && echo "libcrypto.lib confirmed"
# ---- Qt6 target (Windows/macOS) ----
- name: Install Qt6
@@ -227,15 +201,26 @@ jobs:
run: |
if [ "${{ runner.os }}" == "Windows" ]; then
BINARY="build/Release/${{ matrix.exe }}"
+ elif [ "${{ runner.os }}" == "macOS" ]; then
+ # Qt on macOS produces a .app bundle; the binary is inside it.
+ # Try both plain binary and .app bundle locations.
+ if [ -f "build/${{ matrix.exe }}" ]; then
+ BINARY="build/${{ matrix.exe }}"
+ elif [ -f "build/${{ matrix.exe }}.app/Contents/MacOS/${{ matrix.exe }}" ]; then
+ BINARY="build/${{ matrix.exe }}.app/Contents/MacOS/${{ matrix.exe }}"
+ else
+ BINARY="build/${{ matrix.exe }}" # will fail the check below with a clear error
+ fi
else
BINARY="build/${{ matrix.exe }}"
fi
if [ ! -f "$BINARY" ]; then
- echo "::error::Binary not found at $BINARY"
+ echo "::error::Binary not found — searched: build/${{ matrix.exe }} and build/${{ matrix.exe }}.app/Contents/MacOS/${{ matrix.exe }}"
+ echo "Build directory contents:"
+ find build -maxdepth 3 -name "${{ matrix.exe }}" 2>/dev/null || true
exit 1
fi
- echo "Binary verified: $BINARY"
- ls -lh "$BINARY"
+ echo "Binary verified: $BINARY ($(du -sh "$BINARY" | cut -f1))"
# ---- Package: Windows (windeployqt + manual DLL sweep) ----
- name: Package (Windows)
diff --git a/.github/workflows/build-installer.yml b/.github/workflows/build-installer.yml
index e783ebe2f..885c9d62b 100644
--- a/.github/workflows/build-installer.yml
+++ b/.github/workflows/build-installer.yml
@@ -89,35 +89,20 @@ jobs:
pkg-config zip
# ---- OpenSSL dev libs (Windows) ----
- # The runner ships a "Light" OpenSSL (no .lib files). Install the full version.
+ # windows-2022 runners ship only the "Light" OpenSSL (no .lib files).
+ # vcpkg is pre-installed on every windows-2022 runner at C:\vcpkg.
- name: Install OpenSSL (Windows)
if: runner.os == 'Windows'
- shell: pwsh
+ shell: bash
run: |
- # Use winget (pre-installed on windows-2022) to install OpenSSL with dev libs
- # winget is more reliable than choco for OpenSSL on current runners
- $ErrorActionPreference = 'Stop'
- try {
- winget install --id ShiningLight.OpenSSL.Dev --exact --silent --accept-package-agreements --accept-source-agreements
- $root = "C:\Program Files\OpenSSL-Win64"
- if (-not (Test-Path "$root\lib\libcrypto.lib")) {
- $root = "C:\Program Files\OpenSSL"
- }
- echo "OPENSSL_ROOT_DIR=$root" >> $env:GITHUB_ENV
- echo "Installed OpenSSL at: $root"
- } catch {
- # Fallback: download the official Win64 OpenSSL installer directly
- Write-Host "winget failed, trying direct download..."
- $url = "https://github.com/nicowillis/openssl-windows-binaries/releases/download/3.3.1/Win64OpenSSL-3_3_1.exe"
- # Use Scoop as a clean fallback
- Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
- iex "& {$(irm get.scoop.sh)} -RunAsAdmin" 2>$null || true
- scoop bucket add main
- scoop install openssl
- $scoopDir = "$env:USERPROFILE\scoop\apps\openssl\current"
- echo "OPENSSL_ROOT_DIR=$scoopDir" >> $env:GITHUB_ENV
- echo "Installed OpenSSL via scoop at: $scoopDir"
- }
+ set -euo pipefail
+ VCPKG_ROOT="${VCPKG_INSTALLATION_ROOT:-C:/vcpkg}"
+ echo "Using vcpkg at: $VCPKG_ROOT"
+ "$VCPKG_ROOT/vcpkg" install openssl:x64-windows --no-print-usage
+ OPENSSL_DIR="$VCPKG_ROOT/installed/x64-windows"
+ echo "OPENSSL_ROOT_DIR=$OPENSSL_DIR" >> "$GITHUB_ENV"
+ echo "OpenSSL installed at: $OPENSSL_DIR"
+ ls "$OPENSSL_DIR/lib/libcrypto.lib" && echo "libcrypto.lib confirmed"
# ---- Qt6 (Windows / macOS) ----
- name: Install Qt6
@@ -195,11 +180,20 @@ jobs:
run: |
if [ "${{ runner.os }}" == "Windows" ]; then
BINARY="build/Release/${{ matrix.exe }}"
+ elif [ "${{ runner.os }}" == "macOS" ]; then
+ if [ -f "build/${{ matrix.exe }}" ]; then
+ BINARY="build/${{ matrix.exe }}"
+ elif [ -f "build/${{ matrix.exe }}.app/Contents/MacOS/${{ matrix.exe }}" ]; then
+ BINARY="build/${{ matrix.exe }}.app/Contents/MacOS/${{ matrix.exe }}"
+ else
+ BINARY="build/${{ matrix.exe }}"
+ fi
else
BINARY="build/${{ matrix.exe }}"
fi
if [ ! -f "$BINARY" ]; then
- echo "::error::Binary not found at $BINARY"
+ echo "::error::Binary not found — searched: build/${{ matrix.exe }} and build/${{ matrix.exe }}.app/Contents/MacOS/${{ matrix.exe }}"
+ find build -maxdepth 3 -name "${{ matrix.exe }}" 2>/dev/null || true
exit 1
fi
echo "Binary verified: $BINARY ($(du -sh "$BINARY" | cut -f1))"
diff --git a/fincept-qt/CMakeLists.txt b/fincept-qt/CMakeLists.txt
index dd4345eb2..7e490f0c5 100644
--- a/fincept-qt/CMakeLists.txt
+++ b/fincept-qt/CMakeLists.txt
@@ -1242,6 +1242,7 @@ target_include_directories(FinceptTerminal PRIVATE
src
${whisper_SOURCE_DIR}/include
${whisper_SOURCE_DIR}
+ ${SingleApplication_SOURCE_DIR}
)
# ── macOS bundle properties ───────────────────────────────────────────────────
diff --git a/fincept-qt/src/app/MainWindow.cpp b/fincept-qt/src/app/MainWindow.cpp
index 5476a40d7..c2c5d0f70 100644
--- a/fincept-qt/src/app/MainWindow.cpp
+++ b/fincept-qt/src/app/MainWindow.cpp
@@ -6,10 +6,6 @@
#include <DockManager.h>
#include <DockWidget.h>
#include <DockAreaWidget.h>
-#include <IconProvider.h>
-#include <ads_globals.h>
-#include <QPainter>
-#include <QPixmap>
#include "screens/chat_mode/ChatModeScreen.h"
#include "screens/auth/LockScreen.h"
@@ -716,74 +712,7 @@ void MainWindow::setup_docking_mode() {
dock_manager_ = new ads::CDockManager(dock_wrapper);
dock_layout->addWidget(dock_manager_);
- // Register white ADS icons so they're visible on dark backgrounds.
- // ADS uses QStyle::StandardPixmap (black system icons by default); CSS
- // `color` has no effect on them — registerCustomIcon() is the only fix.
- auto make_icon = [](std::function<void(QPainter&, const QRect&)> draw) -> QIcon {
- QPixmap px(16, 16);
- px.fill(Qt::transparent);
- QPainter p(&px);
- p.setRenderHint(QPainter::Antialiasing);
- p.setPen(QPen(QColor("#b0b0b0"), 1.5, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin));
- p.setBrush(Qt::NoBrush);
- draw(p, QRect(3, 3, 10, 10));
- p.end();
- QIcon icon;
- icon.addPixmap(px, QIcon::Normal);
- // Hover: bright white version
- QPixmap px_hover(16, 16);
- px_hover.fill(Qt::transparent);
- QPainter ph(&px_hover);
- ph.setRenderHint(QPainter::Antialiasing);
- ph.setPen(QPen(QColor("#e5e5e5"), 1.5, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin));
- ph.setBrush(Qt::NoBrush);
- draw(ph, QRect(3, 3, 10, 10));
- ph.end();
- icon.addPixmap(px_hover, QIcon::Active);
- return icon;
- };
-
- // Close icon: × (two diagonal lines)
- auto close_icon = make_icon([](QPainter& p, const QRect& r) {
- p.drawLine(r.topLeft(), r.bottomRight());
- p.drawLine(r.topRight(), r.bottomLeft());
- });
-
- // Menu/tabs icon: three horizontal lines (hamburger)
- auto menu_icon = make_icon([](QPainter& p, const QRect& r) {
- int y1 = r.top() + 1, y2 = r.center().y(), y3 = r.bottom() - 1;
- p.drawLine(r.left(), y1, r.right(), y1);
- p.drawLine(r.left(), y2, r.right(), y2);
- p.drawLine(r.left(), y3, r.right(), y3);
- });
-
- // Undock/detach icon: arrow pointing out of a box
- auto undock_icon = make_icon([](QPainter& p, const QRect& r) {
- // small box bottom-left
- QRect box(r.left(), r.top() + 4, r.width() - 4, r.height() - 4);
- p.drawRect(box);
- // arrow top-right
- int ax = r.right(), ay = r.top();
- p.drawLine(ax - 4, ay, ax, ay);
- p.drawLine(ax, ay, ax, ay + 4);
- p.drawLine(ax - 4, ay + 4, ax, ay);
- });
-
- // Minimize icon: horizontal bar at bottom
- auto minimize_icon = make_icon([](QPainter& p, const QRect& r) {
- int y = r.bottom() - 1;
- p.drawLine(r.left(), y, r.right(), y);
- });
-
- auto& ip = ads::CDockManager::iconProvider();
- ip.registerCustomIcon(ads::TabCloseIcon, close_icon);
- ip.registerCustomIcon(ads::DockAreaCloseIcon, close_icon);
- ip.registerCustomIcon(ads::DockAreaMenuIcon, menu_icon);
- ip.registerCustomIcon(ads::DockAreaUndockIcon, undock_icon);
- ip.registerCustomIcon(ads::DockAreaMinimizeIcon, minimize_icon);
- ip.registerCustomIcon(ads::AutoHideIcon, minimize_icon);
-
- // ADS styling is handled by ThemeManager's global QSS — no widget-level
+// ADS styling is handled by ThemeManager's global QSS — no widget-level
// stylesheet needed here. The global QSS has higher priority and won't be
// overridden by theme changes.
}
diff --git a/fincept-qt/src/ui/theme/ThemeManager.cpp b/fincept-qt/src/ui/theme/ThemeManager.cpp
index e323e731d..db518d797 100644
--- a/fincept-qt/src/ui/theme/ThemeManager.cpp
+++ b/fincept-qt/src/ui/theme/ThemeManager.cpp
@@ -387,23 +387,63 @@ QString ThemeManager::build_global_qss() const {
background-color: %3;
}
#tabCloseButton {
- background: none; border: none; padding: 0px;
- max-width: 12px; max-height: 12px; color: %10;
+ background: none; border: none; padding: 2px;
+ width: 16px; height: 16px; min-width: 16px; min-height: 16px;
+ max-width: 16px; max-height: 16px;
+ image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><line x1='4' y1='4' x2='12' y2='12' stroke='%2380808080' stroke-width='1.5' stroke-linecap='round'/><line x1='12' y1='4' x2='4' y2='12' stroke='%2380808080' stroke-width='1.5' stroke-linecap='round'/></svg>");
+ }
+ #tabCloseButton:hover {
+ background: %11;
+ image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><line x1='4' y1='4' x2='12' y2='12' stroke='%23e5e5e5' stroke-width='1.5' stroke-linecap='round'/><line x1='12' y1='4' x2='4' y2='12' stroke='%23e5e5e5' stroke-width='1.5' stroke-linecap='round'/></svg>");
}
- #tabCloseButton:hover { background: %11; color: %19; }
#tabCloseButton:pressed { background: %12; }
- ads--CDockWidgetTab[focused="true"] > #tabCloseButton:hover {
- background: %12;
+ ads--CDockWidgetTab[focused="true"] > #tabCloseButton:hover { background: %12; }
+ #tabsMenuButton {
+ background: none; border: none; padding: 2px;
+ width: 16px; height: 16px; min-width: 16px; min-height: 16px;
+ max-width: 16px; max-height: 16px;
+ image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><line x1='3' y1='5' x2='13' y2='5' stroke='%2380808080' stroke-width='1.5' stroke-linecap='round'/><line x1='3' y1='8' x2='13' y2='8' stroke='%2380808080' stroke-width='1.5' stroke-linecap='round'/><line x1='3' y1='11' x2='13' y2='11' stroke='%2380808080' stroke-width='1.5' stroke-linecap='round'/></svg>");
}
- #tabsMenuButton { background: none; border: none; padding: 0px; color: %10; }
#tabsMenuButton::menu-indicator { image: none; }
- #tabsMenuButton:hover { background: %11; color: %19; }
- #dockAreaCloseButton { background: none; border: none; padding: 0px; color: %10; }
- #dockAreaCloseButton:hover { background: %11; color: %19; }
- #detachGroupButton { background: none; border: none; padding: 0px; color: %10; }
- #detachGroupButton:hover { background: %11; color: %19; }
- ads--CTitleBarButton { padding: 0px; max-width: 14px; max-height: 14px; color: %10; }
- ads--CTitleBarButton:hover { color: %19; }
+ #tabsMenuButton:hover {
+ background: %11;
+ image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><line x1='3' y1='5' x2='13' y2='5' stroke='%23e5e5e5' stroke-width='1.5' stroke-linecap='round'/><line x1='3' y1='8' x2='13' y2='8' stroke='%23e5e5e5' stroke-width='1.5' stroke-linecap='round'/><line x1='3' y1='11' x2='13' y2='11' stroke='%23e5e5e5' stroke-width='1.5' stroke-linecap='round'/></svg>");
+ }
+ #dockAreaCloseButton {
+ background: none; border: none; padding: 2px;
+ width: 16px; height: 16px; min-width: 16px; min-height: 16px;
+ max-width: 16px; max-height: 16px;
+ image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><line x1='4' y1='4' x2='12' y2='12' stroke='%2380808080' stroke-width='1.5' stroke-linecap='round'/><line x1='12' y1='4' x2='4' y2='12' stroke='%2380808080' stroke-width='1.5' stroke-linecap='round'/></svg>");
+ }
+ #dockAreaCloseButton:hover {
+ background: %11;
+ image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><line x1='4' y1='4' x2='12' y2='12' stroke='%23e5e5e5' stroke-width='1.5' stroke-linecap='round'/><line x1='12' y1='4' x2='4' y2='12' stroke='%23e5e5e5' stroke-width='1.5' stroke-linecap='round'/></svg>");
+ }
+ #detachGroupButton {
+ background: none; border: none; padding: 2px;
+ width: 16px; height: 16px; min-width: 16px; min-height: 16px;
+ max-width: 16px; max-height: 16px;
+ image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><rect x='3' y='7' width='6' height='6' fill='none' stroke='%2380808080' stroke-width='1.5' stroke-linejoin='round'/><polyline points='9,3 13,3 13,7' fill='none' stroke='%2380808080' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/><line x1='8' y1='8' x2='13' y2='3' stroke='%2380808080' stroke-width='1.5' stroke-linecap='round'/></svg>");
+ }
+ #detachGroupButton:hover {
+ background: %11;
+ image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><rect x='3' y='7' width='6' height='6' fill='none' stroke='%23e5e5e5' stroke-width='1.5' stroke-linejoin='round'/><polyline points='9,3 13,3 13,7' fill='none' stroke='%23e5e5e5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/><line x1='8' y1='8' x2='13' y2='3' stroke='%23e5e5e5' stroke-width='1.5' stroke-linecap='round'/></svg>");
+ }
+ #dockAreaAutoHideButton, #dockAreaMinimizeButton {
+ background: none; border: none; padding: 2px;
+ width: 16px; height: 16px; min-width: 16px; min-height: 16px;
+ max-width: 16px; max-height: 16px;
+ image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><line x1='3' y1='12' x2='13' y2='12' stroke='%2380808080' stroke-width='1.5' stroke-linecap='round'/></svg>");
+ }
+ #dockAreaAutoHideButton:hover, #dockAreaMinimizeButton:hover {
+ background: %11;
+ image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><line x1='3' y1='12' x2='13' y2='12' stroke='%23e5e5e5' stroke-width='1.5' stroke-linecap='round'/></svg>");
+ }
+ ads--CTitleBarButton {
+ padding: 2px; max-width: 16px; max-height: 16px;
+ min-width: 16px; min-height: 16px;
+ }
+ ads--CTitleBarButton:hover { background: %11; }
ads--CAutoHideSideBar { background: %1; border: none; }
QScrollArea#dockWidgetScrollArea { padding: 0px; border: none; }