Skip to content

Commit

Permalink
Fixes digimezzo#150: Note title font is too bold
Browse files Browse the repository at this point in the history
  • Loading branch information
Digimezzo Raphaël committed Apr 30, 2021
1 parent d5f50cd commit ee2e4bc
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 3 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.0.7] - 2021-04-30

### Added

### Changed

- The note title is now thinner

### Removed

### Fixed

## [2.0.6] - 2021-04-25

### Added
Expand Down
8 changes: 8 additions & 0 deletions main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion main.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,16 @@ function createNoteWindow(notePath: string, noteId: string, windowHasFrame: bool

noteWindow.webContents.on('will-navigate', handleRedirect);
noteWindow.webContents.on('new-window', handleRedirect);

noteWindow.webContents.on('before-input-event', (event, input) => {
if (input.key.toLowerCase() === 'f12') {
if (serve) {
noteWindow.webContents.toggleDevTools();
}

event.preventDefault();
}
});
}

try {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Knowte",
"version": "2.0.6",
"version": "2.0.7",
"description": "A note taking application that allows you to quickly and easily organize and find your notes",
"homepage": "https://github.com/digimezzo/knowte",
"author": {
Expand Down
1 change: 1 addition & 0 deletions src/app/components/note/note.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
}

.note-content-fixed-title-text {
font-family: opensans-light;
background-color: transparent;
width: 100%;
height: 50px;
Expand Down
8 changes: 7 additions & 1 deletion src/css/font-faces.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,10 @@
font-family: opensans;
font-weight: 100;
src: url(assets/fonts/OpenSans-Light.ttf) format('truetype');
}
}

/* Because it is not possible to set font-weight in <input> elements, use this font-family instead. */
@font-face {
font-family: opensans-light;
src: url(assets/fonts/OpenSans-Light.ttf) format('truetype');
}

0 comments on commit ee2e4bc

Please sign in to comment.