diff --git a/renderer/index.html b/renderer/index.html index 665d119..176d090 100644 --- a/renderer/index.html +++ b/renderer/index.html @@ -39,6 +39,7 @@ Workspace Control Git Manager Explorer Pro +
@@ -84,6 +85,8 @@
+
+
diff --git a/renderer/renderer.js b/renderer/renderer.js index c7f141b..55ca230 100644 --- a/renderer/renderer.js +++ b/renderer/renderer.js @@ -3362,6 +3362,11 @@ async function loadGiteaRepos(preloadedData = null, requestId = null) { } async function loadRepoContents(owner, repo, path) { + // Projekttitel als Gravur unterhalb der Toolbar setzen (nur Repo-Name) + const gravurTitle = document.getElementById('project-gravur-title'); + if (gravurTitle) { + gravurTitle.textContent = repo; + } currentState.view = 'gitea-repo'; currentState.owner = owner; currentState.repo = repo; @@ -3403,9 +3408,26 @@ async function loadRepoContents(owner, repo, path) { }); if (!res.ok) { + // Bei Fehler Gravur zurücksetzen + const gravurTitle = document.getElementById('project-gravur-title'); + if (gravurTitle) { + gravurTitle.textContent = ''; + } showError('Error: ' + (res.error || 'Unknown error')); return; } +// Wenn zur Übersicht gewechselt wird, Gravur zurücksetzen +function resetProjectGravurTitle() { + const gravurTitle = document.getElementById('project-gravur-title'); + if (gravurTitle) gravurTitle.textContent = ''; +} + +// Nach dem Laden der Repo-Liste oder beim Klick auf "Zurück" rufe resetProjectGravurTitle() auf +const origLoadRepos = loadRepos; +loadRepos = function(...args) { + resetProjectGravurTitle(); + return origLoadRepos.apply(this, args); +}; const grid = $('explorerGrid'); if (!grid) return; diff --git a/renderer/style.css b/renderer/style.css index 547567e..12a0771 100644 --- a/renderer/style.css +++ b/renderer/style.css @@ -1,3 +1,44 @@ +.project-gravur-bar { + width: 100%; + min-height: 28px; + display: flex; + align-items: flex-end; + justify-content: center; + background: none; + margin-bottom: 0; + pointer-events: none; + position: relative; + z-index: 10; +} +.project-gravur-title { + font-size: 17px; + font-weight: 500; + color: rgba(174, 189, 216, 0.18); + letter-spacing: 0.04em; + font-style: italic; + user-select: none; + text-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 1.5px 0 rgba(0,0,0,0.13); + transition: color 0.2s; + margin-bottom: 2px; +} +.project-gravur-separator { + width: 100%; + height: 2px; + background: linear-gradient(90deg, rgba(88,213,255,0.10) 0%, rgba(92,135,255,0.10) 100%); + margin-bottom: 0px; +} +.toolbar-project-title { + font-size: 13px; + font-weight: 500; + color: rgba(174, 189, 216, 0.22); + letter-spacing: 0.04em; + margin-left: 32px; + font-style: italic; + pointer-events: none; + user-select: none; + text-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 1.5px 0 rgba(0,0,0,0.13); + transition: color 0.2s; +} :root { /* Moderne Farbpalette */ --bg-primary: #07111f; @@ -96,12 +137,15 @@ .titlebar-strip-title { font-size: 11px; - font-weight: 700; - color: rgba(174, 189, 216, 0.68); + font-weight: 600; + color: rgba(174, 189, 216, 0.32); /* viel dezenter */ letter-spacing: 0.045em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; + text-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 1.5px 0 rgba(0,0,0,0.13); + font-style: italic; + font-family: inherit; } #titlebar-strip .win-controls {