Skip to content

Commit 6276e47

Browse files
authored
0.6.4 updated deps (#127)
1 parent eef59a7 commit 6276e47

File tree

5 files changed

+10
-16
lines changed

5 files changed

+10
-16
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,11 @@ jobs:
1414
path: ~/.choosenim
1515
key: ${{ runner.os }}-choosenim-stable
1616

17-
- name: Cache nimble
18-
id: cache-nimble
19-
uses: actions/cache@v1
20-
with:
21-
path: ~/.nimble
22-
key: ${{ runner.os }}-nimble-stable
23-
2417
- uses: jiro4989/setup-nim-action@v1
2518

2619
- name: Install GUI
2720
run: |
2821
sudo apt update
2922
sudo apt install -y build-essential libalut-dev libasound2-dev libc6-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev libxxf86vm-dev mesa-utils pkg-config xorg-dev xvfb
30-
- run: nimble install -y
23+
- run: nimble install -y --verbose
3124
- run: nim c -r tests/run.nim --compile --native --js

fidget.nimble

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Package
22

3-
version = "0.6.3"
3+
version = "0.6.4"
44
author = "treeform"
55
description = "Fidget - UI Library"
66
license = "MIT"
@@ -10,13 +10,13 @@ srcDir = "src"
1010

1111
requires "nim >= 1.0.0"
1212
requires "chroma >= 0.1.3"
13-
requires "typography >= 0.7.1"
14-
requires "pixie >= 0.0.6"
13+
requires "typography >= 0.7.2"
14+
requires "pixie >= 0.0.11"
1515
requires "vmath >= 0.4.0"
1616
requires "print >= 0.1.0"
1717
requires "opengl >= 1.2.3"
1818
requires "html5_canvas >= 1.3"
1919
requires "staticglfw >= 4.1.2"
2020
requires "cligen >= 1.0.0"
2121
requires "supersnappy >= 1.0.0"
22-
requires "bumpy >= 0.2.1"
22+
requires "bumpy >= 1.0.0"

src/fidget.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ proc mouseOverlapLogic*(): bool =
137137
(not popupActive or inPopup) and
138138
current.screenBox.w > 0 and
139139
current.screenBox.h > 0 and
140-
mouse.pos.overlap(current.screenBox)
140+
mouse.pos.overlaps(current.screenBox)
141141

142142
template onClick*(inner: untyped) =
143143
## On click event handler.

src/fidget/openglbackend.nim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import chroma, common, hashes, input, internal, opengl/base,
22
opengl/context, os, strformat, strutils, tables, times, typography,
3-
typography/textboxes, unicode, vmath, opengl/formatflippy, bumpy
3+
typography/textboxes, unicode, vmath, opengl/formatflippy, bumpy,
4+
typography/svgfont
45

56
when not defined(emscripten) and not defined(fidgetNoAsync):
67
import httpClient, asyncdispatch, asyncfutures, json
@@ -88,7 +89,7 @@ proc drawText(node: Node) =
8889

8990
let mousePos = mouse.pos - node.screenBox.xy
9091

91-
if node.selectable and mouse.down and mouse.pos.overlap(node.screenBox):
92+
if node.selectable and mouse.down and mouse.pos.overlaps(node.screenBox):
9293
# mouse actions click, drag, double clicking
9394
keyboard.focus(node)
9495
if mouse.click:

tests/bars/bars.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ proc drawMain() =
2727
box 20, 20 + 60 * i, barW, 60
2828

2929
# If current box is not on screen, don't draw children.
30-
if current.screenBox.overlap(scrollBox):
30+
if current.screenBox.overlaps(scrollBox):
3131

3232
# Draw the decrement button to make the bar go down.
3333
rectangle "dec":

0 commit comments

Comments
 (0)