fixed tests

This commit is contained in:
Joe Bellus 2024-04-19 13:28:26 -04:00
parent 07e196ce3f
commit 9a67ec1329
2 changed files with 4 additions and 6 deletions

View File

@ -10,11 +10,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v4
-
name: Build
- name: Build
run: |
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/5Sigma/codex/releases/latest/download/Codex-installer.sh | sh
codex -r docs build

View File

@ -9,8 +9,8 @@ fn main() {
fn root(ctx: &mut ViewContext, theme: Res<Theme>) {
let size = ctx.size();
ctx.paint(size, theme.bg_primary);
ctx.paint(Rect::new((5, 5), size - 10), theme.bg_secondary);
ctx.fill_all(theme.bg_primary);
ctx.fill(Rect::new((5, 5), size - 10), theme.bg_secondary);
ctx.insert((10, 10), "Hello World");
ctx.insert(
((size.width / 2) - 7, 0),