Skip to content

Commit 7712f4c

Browse files
committed
Update readme
1 parent 99266a2 commit 7712f4c

5 files changed

Lines changed: 11 additions & 18 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,6 @@ npm start
3131

3232
<p align="center">
3333
<img src="https://raw.githubusercontent.com/irustm/angular-nodegui/master/demo/demo_start.png" width="350" title="angular nodegui demo">
34+
35+
<img src="https://raw.githubusercontent.com/irustm/angular-nodegui/master/demo/demo_widget.png" width="600" title="angular nodegui demo">
3436
</p>

demo/demo_start.png

-408 KB
Loading

src/app/app.component.html

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,11 @@
1-
<window #window title="Angular app in window!">
1+
<window #window title="Angular native app!">
22
<view id="app">
3-
<image
4-
id="image"
5-
[src]="'./src/assets/angular.png'"
6-
[aspectRatioMode]="aspectRatioMode"
7-
></image>
3+
<image id="image" [src]="'./src/assets/angular.png'" [aspectRatioMode]="aspectRatioMode"></image>
84

95
<app-hello [name]="name"></app-hello>
106

11-
<text>Github name</text>
12-
<linedit
13-
[text]="name"
14-
[placeholderText]="'Insert github username'"
15-
(textChanged)="textChanged($event)"
16-
></linedit>
7+
<text>Github username</text>
8+
<linedit [text]="name" [placeholderText]="'Insert github username'" (textChanged)="textChanged($event)"></linedit>
179

1810
<!-- <checkbox [checked]="true"></checkbox>
1911
<checkbox [checked]="true" [enabled]="false"></checkbox>

src/app/app.component.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#app {
2-
background-color: gray;
2+
background-color: white;
33
}
44

55
#app-hello {
6-
background-color: green;
6+
background-color: rgb(0, 162, 255);
77
}

src/app/app.component.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
OnInit,
66
ElementRef
77
} from '@angular/core';
8-
import { AspectRatioMode, WindowType } from '@nodegui/nodegui';
8+
import { AspectRatioMode } from '@nodegui/nodegui';
99
import { NgWindow } from '../../projects/angular-nodegui/src/lib/components/window';
1010

1111
@Component({
@@ -25,9 +25,8 @@ export class AppComponent implements OnInit {
2525
ngOnInit() {
2626
const win = this.window.nativeElement.parent;
2727

28-
win.setMinimumSize(630, 560);
29-
// win.setWindowFlag(WindowType.FramelessWindowHint, true);
30-
// win.setWindowFlag(WindowType.Widget, true);
28+
win.resize(480, 620);
29+
win.setMinimumSize(480, 620);
3130
}
3231

3332
setName() {

0 commit comments

Comments
 (0)