Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Signed-off-by: Grigorii K. Shartsev <[email protected]>
  • Loading branch information
ShGKme committed Apr 18, 2024
1 parent 50947a8 commit 6d1e555
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 17 deletions.
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 @@ export default {
}
</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 @@ function createTalkWindow() {
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

0 comments on commit 6d1e555

Please sign in to comment.