Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- **Design system cleanup (P5-A)** — Renamed leftover `Glassmorphic*` widgets to real names (`SectionCard`, `StyledButton`, `AppMainWindow`, …), dropped card drop-shadows, and drove `theme_base.css` / splash CSS from a single `DesignTokens` flat-dark set (steel-blue accent, no purple/glow). Screenshot docs note the PNGs are still legacy menu-bar captures.
- **macOS packaging docs** — README now states official DMG builds are **Apple Silicon only** (no Intel Mac artifacts).
- **Test foundation (P3-D)** — Unit CI now enforces `--cov=core --cov=utils --cov-fail-under=30`, locks C1/C2 via `audit_c1`/`audit_c2` markers, and adds Encoder/Subtitle widget smoke tests. A scheduled/on-demand workflow runs the FFmpeg integration suite that the PR matrix still excludes.
- **GPU / encoder OS matrix documented** — README, CLAUDE.md, and encoder docs spell out NVENC (all), AMF (Windows), VAAPI (Linux), QSV (Windows/Linux), VideoToolbox (macOS).
Expand Down Expand Up @@ -110,7 +111,7 @@ First stable release of the PySide6 rewrite. This promotes the 0.5.0 alpha line
- Several subtitle scrapers (Podnapisi, SubDivX, Jimaku) target site layouts that have since changed. They are **quarantined**: shown as unavailable in the Subtitles tab and skipped during search until rewritten (no silent empty “success”).
- CLI: `encode`, `rename`, and `gui` work and share `EncodeForgeCore` with the desktop app; `subtitle` is still a stub that exits with status 2 (use the GUI).
- Theme Light/Auto, app language, toolbar, and two-pass encoding are not offered in Settings until implemented; status bar visibility is wired.
- Screenshots under `docs/screenshots/` show an older menu-bar / three-table UI, not the current frameless sidebar layout.
- Screenshots under `docs/screenshots/` are legacy menu-bar / three-table captures (see `docs/screenshots/README.md`); the shipping UI is frameless sidebar + flat dark tokens.

### Release Links

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ python build_nuitka.py

That's it. Most options have sensible defaults, so you can dive straight in.

> **Note:** Screenshots on the [project site](https://sirstig.github.io/EncodeForge/#screenshots) (`docs/screenshots/`) show an older menu-bar UI, not the current frameless sidebar layout.
> **Note:** Screenshots on the [project site](https://sirstig.github.io/EncodeForge/#screenshots) (`docs/screenshots/`) are legacy menu-bar captures. The current app uses frameless sidebar chrome and a flat dark token theme — see `docs/screenshots/README.md`.

### Scripting from the CLI

Expand Down
2 changes: 1 addition & 1 deletion app/dialogs/ffmpeg_setup_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __init__(self, parent=None, required: bool = True):
self._auto_detect()

def _apply_theme(self):
"""Apply glassmorphism theme to dialog."""
"""Apply flat dark theme to dialog."""
try:
theme_manager = get_theme_manager()
theme_manager.apply_dialog_theme(self)
Expand Down
5 changes: 4 additions & 1 deletion app/dialogs/settings_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ def _hint(text: str) -> QLabel:

def _link(text: str, url: str) -> QLabel:
"""Return a small clickable hyperlink label."""
lbl = QLabel(f'<a href="{url}" style="color:#6366f1;text-decoration:none;">{text}</a>')
from utils.design_tokens import default_tokens

accent = default_tokens().accent
lbl = QLabel(f'<a href="{url}" style="color:{accent};text-decoration:none;">{text}</a>')
lbl.setOpenExternalLinks(True)
lbl.setStyleSheet("font-size: 10px;")
return lbl
Expand Down
4 changes: 2 additions & 2 deletions app/dialogs/update_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from PySide6.QtGui import QDesktopServices
from PySide6.QtWidgets import QDialog, QHBoxLayout, QLabel, QTextEdit, QVBoxLayout

from app.widgets.custom_widgets import GlassmorphicButton, PrimaryButton, StyledLabel
from app.widgets.custom_widgets import StyledButton, PrimaryButton, StyledLabel
from utils.update_checker import ReleaseInfo


Expand Down Expand Up @@ -52,7 +52,7 @@ def __init__(self, release: ReleaseInfo, current_version: str, parent=None):

row = QHBoxLayout()
row.addStretch()
close_btn = GlassmorphicButton("Close")
close_btn = StyledButton("Close")
close_btn.clicked.connect(self.reject)
row.addWidget(close_btn)

Expand Down
13 changes: 6 additions & 7 deletions app/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@
from app import __version__ as APP_VERSION
from app.widgets.app_title_bar import AppTitleBar
from app.widgets.custom_widgets import (
GlassmorphicButton,
GlassmorphicMainWindow,
GlassmorphicStatusBar,
AppMainWindow,
AppStatusBar,
SectionDivider,
StyledLabel,
)
Expand Down Expand Up @@ -58,14 +57,14 @@
LogsTab = None


class MainWindow(GlassmorphicMainWindow):
class MainWindow(AppMainWindow):
def __init__(self):
super().__init__()
self._title_bar = None
self.setWindowTitle("EncodeForge")

# Enable transparency for glassmorphism effect
self.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground, False) # Keep opaque for now
# Frameless window stays opaque (flat dark theme; no translucent glass)
self.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground, False)

# Set proper window sizing with responsive constraints
self.setMinimumSize(1000, 640)
Expand Down Expand Up @@ -554,7 +553,7 @@ def _handle_add_folder(self):

# -------------------- Status & callbacks --------------------
def _create_statusbar(self):
self.statusbar = GlassmorphicStatusBar()
self.statusbar = AppStatusBar()
self.statusbar.setObjectName("app_bottom_bar")
self.setStatusBar(self.statusbar)
self.status_label = StyledLabel("Ready")
Expand Down
24 changes: 5 additions & 19 deletions app/splash_screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from PySide6.QtWidgets import QWidget, QVBoxLayout, QLabel, QProgressBar
from PySide6.QtCore import Qt, QTimer, Signal
from PySide6.QtGui import QPixmap, QPalette, QColor, QFont
from pathlib import Path

from utils.platform_fonts import ui_font

Expand Down Expand Up @@ -96,25 +95,12 @@ def _setup_ui(self):
layout.addStretch(1)

def _load_styles(self):
"""Load CSS styles for the splash screen."""
"""Load CSS styles for the splash screen from the shared token set."""
try:
from PySide6.QtCore import QFile, QTextStream

css_file = Path(__file__).parent.parent / "resources" / "styles" / "splash_screen.css"
if css_file.exists():
file = QFile(str(css_file))
if file.open(QFile.OpenModeFlag.ReadOnly | QFile.OpenModeFlag.Text):
stream = QTextStream(file)
css_content = stream.readAll()
file.close()

# Apply the CSS
self.setStyleSheet(css_content)
logger.debug("Splash screen styles loaded successfully")
else:
logger.warning("Failed to open splash_screen.css file")
else:
logger.warning("splash_screen.css file not found")
from utils.app_stylesheet import build_splash_stylesheet

self.setStyleSheet(build_splash_stylesheet())
logger.debug("Splash screen styles loaded successfully")
except Exception as e:
logger.error(f"Failed to load splash screen styles: {e}")

Expand Down
60 changes: 20 additions & 40 deletions app/widgets/custom_widgets.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
EncodeForge Custom Widget Library
Glassmorphic UI components — styling delegated to theme_base.css
Flat-dark UI components — styling delegated to theme_base.css / DesignTokens.
"""

from PySide6.QtCore import QSize, Qt
Expand All @@ -10,7 +10,6 @@
QCheckBox,
QComboBox,
QFrame,
QGraphicsDropShadowEffect,
QHBoxLayout,
QHeaderView,
QLabel,
Expand Down Expand Up @@ -106,15 +105,15 @@ def enableDragDrop(self, drag_enter_callback=None, drop_callback=None):
# CONTAINER WIDGETS
# ============================================================================

class GlassmorphicCard(QFrame):
class SectionCard(QFrame):
"""
Section title above a single rounded surface (styled in theme_base.css).
Add children via content_layout() or add a QFormLayout with content_layout().addLayout(...).
"""

def __init__(self, title="", parent=None):
super().__init__(parent)
self.setObjectName("glass_card")
self.setObjectName("section_card")
self.setFrameShape(QFrame.Shape.NoFrame)
self.setSizePolicy(
QSizePolicy.Policy.Expanding,
Expand All @@ -125,15 +124,15 @@ def __init__(self, title="", parent=None):
root.setSpacing(0)
if title:
tl = QLabel(title)
tl.setObjectName("glass_card_title")
tl.setObjectName("section_card_title")
tl.setSizePolicy(
QSizePolicy.Policy.Preferred,
QSizePolicy.Policy.Fixed,
)
root.addWidget(tl)
root.setSpacing(8)
self._body = QFrame()
self._body.setObjectName("glass_card_body")
self._body.setObjectName("section_card_body")
self._body.setFrameShape(QFrame.Shape.NoFrame)
self._body.setSizePolicy(
QSizePolicy.Policy.Expanding,
Expand All @@ -142,49 +141,30 @@ def __init__(self, title="", parent=None):
self._body_layout = QVBoxLayout(self._body)
self._body_layout.setContentsMargins(0, 0, 0, 0)
root.addWidget(self._body, 1)
self.setGraphicsEffect(self._create_shadow())

def body(self) -> QFrame:
return self._body

def content_layout(self) -> QVBoxLayout:
return self._body_layout

def _create_shadow(self):
shadow = QGraphicsDropShadowEffect()
shadow.setBlurRadius(18)
shadow.setColor(Qt.GlobalColor.black)
shadow.setOffset(0, 3)
return shadow


class GlassmorphicPanel(QWidget):
"""
Generic panel — styling delegated to CSS.
Only sets shadow effect.
"""
class ContentPanel(QWidget):
"""Generic expanding panel — styling delegated to CSS."""

def __init__(self, parent=None):
super().__init__(parent)
self.setSizePolicy(
QSizePolicy.Policy.Expanding,
QSizePolicy.Policy.Expanding
)
self.setGraphicsEffect(self._create_shadow())

def _create_shadow(self):
shadow = QGraphicsDropShadowEffect()
shadow.setBlurRadius(15)
shadow.setColor(Qt.GlobalColor.black)
shadow.setOffset(0, 2)
return shadow


# ============================================================================
# BUTTON WIDGETS
# ============================================================================

class GlassmorphicButton(QPushButton):
class StyledButton(QPushButton):
"""
Button — styling via CSS QPushButton rules.
Only enforces size constraints.
Expand Down Expand Up @@ -218,7 +198,7 @@ def _setup_constraints(self):
self.setMinimumWidth(28)


class PrimaryButton(GlassmorphicButton):
class PrimaryButton(StyledButton):
"""Accent-coloured primary action button (primary=true CSS property)."""

def __init__(self, text="", icon=None, parent=None):
Expand Down Expand Up @@ -360,7 +340,7 @@ def setHeading(self):
# LAYOUT WIDGETS
# ============================================================================

class GlassmorphicToolBar(QToolBar):
class AppToolBar(QToolBar):
"""
Toolbar — styling via CSS QToolBar rules.
Only enforces size constraints.
Expand All @@ -375,7 +355,7 @@ def _setup_constraints(self):
self.setIconSize(QSize(16, 16))


class GlassmorphicStatusBar(QStatusBar):
class AppStatusBar(QStatusBar):
"""
Status bar — styling via CSS QStatusBar rules.
Only enforces size constraints.
Expand All @@ -394,10 +374,10 @@ def _setup_constraints(self):
# WINDOW WIDGETS
# ============================================================================

class GlassmorphicMainWindow(QMainWindow):
class AppMainWindow(QMainWindow):
"""
Main window — background styling via CSS QMainWindow rule.
No inline stylesheet needed.
Frameless chrome; title bar is AppTitleBar.
"""

def __init__(self, parent=None):
Expand Down Expand Up @@ -427,7 +407,7 @@ def __init__(self, spacing=8, parent=None):
)

def addButton(self, text, icon=None, callback=None):
btn = GlassmorphicButton(text, icon)
btn = StyledButton(text, icon)
if callback:
btn.clicked.connect(callback)
self.layout.addWidget(btn)
Expand Down Expand Up @@ -474,19 +454,19 @@ def __init__(self, parent=None):

__all__ = [
"AutoResizeTable",
"GlassmorphicCard",
"GlassmorphicPanel",
"GlassmorphicButton",
"SectionCard",
"ContentPanel",
"StyledButton",
"PrimaryButton",
"StyledComboBox",
"StyledLineEdit",
"StyledSpinBox",
"StyledTextEdit",
"StyledCheckBox",
"StyledLabel",
"GlassmorphicToolBar",
"GlassmorphicStatusBar",
"GlassmorphicMainWindow",
"AppToolBar",
"AppStatusBar",
"AppMainWindow",
"ButtonRow",
"FormRow",
"SectionDivider",
Expand Down
Loading
Loading