Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New design 2 - Combine title bar with Talk's top bar #621

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
43 changes: 32 additions & 11 deletions src/talk/renderer/DesktopHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
<template>
<header id="header" class="header">
<div class="header__inner">
<div v-if="!OS.isMac"
class="header__title-wrapper"
role="button"
tabindex="0"
@click="pushToRoot">
<span class="header__title">Nextcloud Talk</span>
<span class="header__preview-badge">Preview</span>
</div>
<!-- <div v-if="!OS.isMac"-->

Check failure on line 25 in src/talk/renderer/DesktopHeader.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Unexpected tab character
<!-- class="header__title-wrapper"-->

Check failure on line 26 in src/talk/renderer/DesktopHeader.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Unexpected tab character
<!-- role="button"-->

Check failure on line 27 in src/talk/renderer/DesktopHeader.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Unexpected tab character
<!-- tabindex="0"-->

Check failure on line 28 in src/talk/renderer/DesktopHeader.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Unexpected tab character
<!-- @click="pushToRoot">-->

Check failure on line 29 in src/talk/renderer/DesktopHeader.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Unexpected tab character
<!-- <span class="header__title">Nextcloud Talk</span>-->

Check failure on line 30 in src/talk/renderer/DesktopHeader.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Unexpected tab character
<!-- <span class="header__preview-badge">Preview</span>-->

Check failure on line 31 in src/talk/renderer/DesktopHeader.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Unexpected tab character
<!-- </div>-->

Check failure on line 32 in src/talk/renderer/DesktopHeader.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Unexpected tab character

<div class="spacer" />

Expand Down Expand Up @@ -86,13 +86,34 @@
}
</script>

<style>
:root {
--talk-desktop-menu: 54px;
}

.top-bar {
padding-right: var(--talk-desktop-menu) !important;
}

.app-sidebar-header__desc {
padding-right: calc(50px + var(--talk-desktop-menu)) !important;
}

.app-sidebar__close {
right: calc(6px + var(--talk-desktop-menu)) !important;
}
</style>

<style scoped>
.header {
height: 50px;
height: 60px;
box-sizing: border-box;
margin-bottom: -50px;
/*margin-bottom: -50px;*/
color: #FFF;
user-select: none;
position: absolute;
top: 0;
right: 0;
z-index: 1000;
}

.header__inner {
Expand Down
5 changes: 5 additions & 0 deletions src/talk/renderer/assets/overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@
:root {
/* It is IMPORTANT to set "px" here, not just "0" */
--body-container-margin: 0px;
--body-height: 100%;
}

#content-vue {
border-radius: 0 !important;
}

.content {
margin-top: 0 !important;
}
12 changes: 6 additions & 6 deletions src/talk/talk.window.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@
preload: TALK_WINDOW_PRELOAD_WEBPACK_ENTRY,
},
icon: getBrowserWindowIcon(),
titleBarStyle: 'hidden',
titleBarOverlay: {
color: '#00669E00', // Transparent
symbolColor: '#FFFFFF', // White
height: 50,
},
// titleBarStyle: 'hidden',
// titleBarOverlay: {
// color: '#00669E00', // Transparent

Check failure on line 45 in src/talk/talk.window.js

View workflow job for this annotation

GitHub Actions / NPM lint

Unexpected tab character
// symbolColor: '#FFFFFF', // White

Check failure on line 46 in src/talk/talk.window.js

View workflow job for this annotation

GitHub Actions / NPM lint

Unexpected tab character
// height: 50,
// },
// Position of the top left corner of the traffic light on Mac
trafficLightPosition: {
x: 12, // In line with SearchBox
Expand Down
Loading