Skip to content

Commit

Permalink
Switch to SIMD for Style properties and fix incorrect default of TRUE…
Browse files Browse the repository at this point in the history
…_COLOR. (#15)

* transitioning

* wip

* try using simd

* using simd

* wip

* remove rules dict and cleanup usage of properties struct
  • Loading branch information
thatstoasty authored Jul 4, 2024
1 parent cdd8cca commit 892272b
Show file tree
Hide file tree
Showing 12 changed files with 858 additions and 888 deletions.
2 changes: 0 additions & 2 deletions examples/readme/basic.mojo
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from mog import Style
import mog


Expand All @@ -12,5 +11,4 @@ fn main():
.padding_left(4)
.width(22)
)

print(style.render("Hello, kitty"))
4 changes: 1 addition & 3 deletions examples/readme/layout.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@ fn build_tabs() -> String:
)

var tab_style = mog.new_style().border(tab_border).border_foreground(highlight).padding(0, 1)

var active_tab = tab_style.border(active_tab_border, True)

var tab_gap = tab_style.border_top(False).border_left(False).border_right(False)
var tab_gap = tab_style.border_top(False).border_left(False).border_right(False).border_bottom(True)

var row = join_horizontal(
position.top,
Expand Down
1 change: 0 additions & 1 deletion external/string_dict/__init__.mojo

This file was deleted.

107 changes: 0 additions & 107 deletions external/string_dict/ahasher.mojo

This file was deleted.

Loading

0 comments on commit 892272b

Please sign in to comment.