Skip to content

Commit 024dc0e

Browse files
committed
UI improvements
1 parent 40e32e4 commit 024dc0e

19 files changed

+58
-58
lines changed

application/pycatia_scripts/drafting/drawing_template_support/title_block.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def create_title_block(sheet: DrawingSheet,
325325
add_title_block_text(texts, text, text_x, text_y, size=2.2)
326326

327327
# add the logo
328-
logo = Path(path_prefix, 'application/pycatia_scripts/drafting/drawing_template_support/logo', drawing_template['logo'])
328+
logo = Path(path_prefix, 'application/static/images', drawing_template['logo'])
329329
if not logo.is_file():
330330
raise CATIAApplicationException(f'Could not locate logo: "{logo}".')
331331
logo_x = v3["x"] + 12.5

application/pycatia_scripts/settings.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ def read_yaml(f: Path):
1818
return data
1919

2020

21-
# you probably wouldn't have to do this out of a development environment.
22-
path_prefix = Path(os.getcwd())
21+
path_prefix = Path(os.path.dirname(__file__)).parent.parent
2322

2423
yaml_file = Path(path_prefix, 'settings.yaml')
2524
yaml_data = read_yaml(yaml_file)

application/templates/common/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- header.html -->
22
<div id="get_document" hx-get="/htmx/document/object" hx-target="#document_object" hx-swap="innerHtml" hx-trigger="load">
3-
<div id="document_object" style="height: 150px;">
3+
<div id="document_object" style="height: 100px;">
44
</div>
55
</div>
66
<h1 class="pytitle text-center">

application/templates/drafting_save_as_dxf.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ <h2 class="mt-3">Save As DXF</h2>
4242
</div>
4343
</div>
4444
<div class="text-center mt-2">
45-
<button name="save_as" class="btn btn-primary rounded-1" value="save_as" script="on click remove #output">Save As</button>
45+
<button name="save_as" class="btn btn-success rounded-1" value="save_as" script="on click remove #output">Save As</button>
4646
</div>
4747
</form>
4848
<div id="save_as">

application/templates/drafting_save_as_pdf.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ <h2 class="mt-3">Save As PDF</h2>
4343
</div>
4444
</div>
4545
<div class="text-center mt-2">
46-
<button name="save_as" class="btn btn-primary rounded-1" value="save_as" script="on click remove #output">Save As</button>
46+
<button name="save_as" class="btn btn-success rounded-1" value="save_as" script="on click remove #output">Save As</button>
4747
</div>
4848
</form>
4949

application/templates/drafting_template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ <h2 class="mt-3">Insert Drawing Template</h2>
5252
</div>
5353
</div>
5454
<div class="text-center">
55-
<button name="template" class="btn btn-primary" value="template" script="on click remove #output">Insert Template</button>
55+
<button name="template" class="btn btn-success" value="template" script="on click remove #output">Insert Template</button>
5656
</div>
5757
</form>
5858

application/templates/drafting_views.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ <h2 class="mt-3">View Locks</h2>
2020
>
2121
<div class="col-12">
2222
<div class="input-group">
23-
<button name="locker" class="btn btn-primary rounded-1 m-2" value="lock" script="on click remove #output">Lock Views</button>
24-
<button name="locker" class="btn btn-primary rounded-1 m-2" value="unlock" script="on click remove #output">Unlock Views</button>
23+
<button name="locker" class="btn btn-success rounded-1 m-2" value="lock" script="on click remove #output">Lock Views</button>
24+
<button name="locker" class="btn btn-success rounded-1 m-2" value="unlock" script="on click remove #output">Unlock Views</button>
2525
</div>
2626
<div class="form-check">
2727
<input name="includeMainViewLock" value="True" class="form-check-input" type="checkbox" value="" id="includeMainViewLock">
@@ -55,8 +55,8 @@ <h2 class="mt-3">View Frames</h2>
5555
>
5656
<div class="col-12">
5757
<div class="input-group">
58-
<button name="framer" class="btn btn-primary rounded-1 m-2" value="on" script="on click remove #output">Frame On</button>
59-
<button name="framer" class="btn btn-primary rounded-1 m-2" value="off" script="on click remove #output">Frame Off</button>
58+
<button name="framer" class="btn btn-success rounded-1 m-2" value="on" script="on click remove #output">Frame On</button>
59+
<button name="framer" class="btn btn-success rounded-1 m-2" value="off" script="on click remove #output">Frame Off</button>
6060
</div>
6161
</div>
6262
</form>

application/templates/part_bounding_box.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ <h2>Create Bounding Box</h2>
2020
hx-indicator="#bounding_box"
2121
>
2222
<div class="text-center mt-2">
23-
<button name="Create Bounding Box" class="btn btn-primary rounded-1" value="Create Bounding Box" script="on click remove #output">Create Bounding Box</button>
23+
<button name="Create Bounding Box" class="btn btn-success rounded-1" value="Create Bounding Box" script="on click remove #output">Create Bounding Box</button>
2424
</div>
2525
</form>
2626
<div id="bounding_box">

application/templates/part_new.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ <h3>Attributes</h3>
4343
</div>
4444
</div>
4545
<div class="text-center mt-2">
46-
<button name="Create Part" class="btn btn-primary rounded-1" value="Create Part" script="on click remove #output">Create Part</button>
46+
<button name="Create Part" class="btn btn-success rounded-1" value="Create Part" script="on click remove #output">Create Part</button>
4747
</div>
4848
</form>
4949
<div class="mt-2" id="create_new">

0 commit comments

Comments
 (0)