ENH: refactor DailyTips

jira: new

1. Refactor the UI:
	put dailytips into slicing notification
	add image for dailytips
	adjust Layout and UI control
	adapts retina scale, adapts dark mode color
2. New Features
	ability to expand/collapse the dailytips
	ability to freely go to next/prev page of dailytips
	show a random dailytip each time when begin to slice
	ability to remember the default statet add .
	of whether expand the dailytips
3. Remove original hintNotification related logic

Change-Id: I99bfa8c19c9417d25cb2f6e205f5e66b7680b189
This commit is contained in:
liz.li
2023-10-18 20:39:18 +08:00
committed by Lane.Wei
parent 16ae34d906
commit dd666a6313
38 changed files with 1349 additions and 387 deletions

View File

@@ -65,6 +65,7 @@
[hint:3D Scene Operations]
text = 3D Scene Operations\nDid you know how to control view and object/part selection with mouse and touchpanel in the 3D scene?
documentation_link = https://wiki.bambulab.com/en/software/bambu-studio/3d-scene-operations
image = images/dailytips_3DScene.PNG
[hint:Cut Tool]
text = Cut Tool\nDid you know that you can cut a model at any angle and position with the cutting tool?
@@ -85,14 +86,17 @@ documentation_link = https://wiki.bambulab.com/en/software/bambu-studio/auto-arr
[hint:Auto-Orient]
text = Auto-Orient\nDid you know that you can rotate objects to an optimal orientation for printing by a simple click?
documentation_link = https://wiki.bambulab.com/en/software/bambu-studio/auto-orientation
image = images/dailytips_AutoArrange.PNG
[hint:Lay on Face]
text = Lay on Face\nDid you know that you can quickly orient a model so that one of its faces sits on the print bed? Select the \"Place on face\" function or press the <b>F</b> key.
documentation_link = https://wiki.bambulab.com/en/software/bambu-studio/lay-on-face
image = images/dailytips_LayOnFace.PNG
[hint:Object List]
text = Object List\nDid you know that you can view all objects/parts in a list and change settings for each object/part?
documentation_link = https://wiki.bambulab.com/en/software/bambu-studio/object-list
image = images/dailytips_ObjectList.PNG
#[hint:Search Functionality]
#text = Search Functionality\nDid you know that you use the Search tool to quickly find a specific Bambu Studio setting? Or use the familiar shortcut <b>Ctrl+F</b>.
@@ -100,10 +104,12 @@ documentation_link = https://wiki.bambulab.com/en/software/bambu-studio/object-l
[hint:Simplify Model]
text = Simplify Model\nDid you know that you can reduce the number of triangles in a mesh using the Simplify mesh feature? Right-click the model and select Simplify model. Read more in the documentation.
documentation_link = https://wiki.bambulab.com/en/software/bambu-studio/simplify-model
image = images/dailytips_SimplifyModel.PNG
[hint:Slicing Parameter Table]
text = Slicing Parameter Table\nDid you know that you can view all objects/parts on a table and change settings for each object/part?
documentation_link = https://wiki.bambulab.com/en/software/bambu-studio/parameter-table
image = images/dailytips_SlicingParamTable.PNG
[hint:Split to Objects/Parts]
text = Split to Objects/Parts\nDid you know that you can split a big object into small ones for easy colorizing or printing?
@@ -112,6 +118,7 @@ documentation_link = https://wiki.bambulab.com/en/software/bambu-studio/split-to
[hint:Subtract a Part]
text = Subtract a Part\nDid you know that you can subtract one mesh from another using the Negative part modifier? That way you can, for example, create easily resizable holes directly in Bambu Studio. Read more in the documentation.
documentation_link = https://wiki.bambulab.com/en/software/bambu-studio/subtract-a-part
image = images/dailytips_SubtractPart.png
[hint:STEP]
text = STEP\nDid you know that you can improve your print quality by slicing a STEP file instead of an STL?\nBambu Studio supports slicing STEP files, providing smoother results than a lower resolution STL. Give it a try!
@@ -120,6 +127,7 @@ documentation_link= https://wiki.bambulab.com/en/software/bambu-studio/step
[hint:Z seam location]
text = Z seam location\nDid you know that you can customize the location of the Z seam, and even paint it on your print, to have it in a less visible location? This improves the overall look of your model. Check it out!
documentation_link= https://wiki.bambulab.com/en/software/bambu-studio/Seam
image = images/dailytips_ZSeamLocation.png
[hint:Fine-tuning for flow rate]
text = Fine-tuning for flow rate\nDid you know that flow rate can be fine-tuned for even better-looking prints? Depending on the material, you can improve the overall finish of the printed model by doing some fine-tuning.
@@ -128,6 +136,7 @@ documentation_link= https://wiki.bambulab.com/en/x1/manual/manual-flow-rate-tuni
[hint:Split your prints into plates]
text = Split your prints into plates\nDid you know that you can split a model that has a lot of parts into individual plates ready to print? This will simplify the process of keeping track of all the parts.
documentation_link= https://wiki.bambulab.com/en/software/bambu-studio/plates_management
image = images/dailytips_SplitIntoPlates.png
[hint:Speed up your print with Adaptive Layer Height]
text = Speed up your print with Adaptive Layer Height\nDid you know that you can print a model even faster, by using the Adaptive Layer Height option? Check it out!
@@ -140,6 +149,7 @@ documentation_link= https://wiki.bambulab.com/en/software/bambu-studio/support-p
[hint:Different types of supports]
text = Different types of supports\nDid you know that you can choose from multiple types of supports? Tree supports work great for organic models, while saving filament and improving print speed. Check them out!
documentation_link= https://wiki.bambulab.com/en/software/bambu-studio/support
image = images/dailytips_TypesOfSupports.png
[hint:Printing Silk Filament]
text = Printing Silk Filament\nDid you know that Silk filament needs special consideration to print it successfully? Higher temperature and lower speed are always recommended for the best results.
@@ -148,6 +158,7 @@ documentation_link= https://wiki.bambulab.com/en/x1/manual/printing-with-silk-fi
[hint:Brim for better adhesion]
text = Brim for better adhesion\nDid you know that when printing models have a small contact interface with the printing surface, it's recommended to use a brim?
documentation_link= https://wiki.bambulab.com/en/software/bambu-studio/auto-brim
image = images/dailytips_Brim.png
[hint:Set parameters for multiple objects]
text = Set parameters for multiple objects\nDid you know that you can set slicing parameters for all selected objects at one time?
@@ -156,6 +167,7 @@ documentation_link= https://wiki.bambulab.com/en/software/bambu-studio/set-param
[hint:Stack objects]
text = Stack objects\nDid you know that you can stack objects as a whole one?
documentation_link= https://wiki.bambulab.com/en/software/bambu-studio/stacking-objects
image = images/dailytips_StackObject.png
[hint:Flush into support/objects/infill]
text = Flush into support/objects/infill\nDid you know that you can save the wasted filament by flushing them into support/objects/infill during filament change?

Binary file not shown.

After

Width:  |  Height:  |  Size: 378 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 407 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 448 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 303 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 479 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 724 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

View File

@@ -0,0 +1,10 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_14849_19005)">
<path d="M1.5 12C1.5 9.21523 2.60625 6.54451 4.57538 4.57538C6.54451 2.60625 9.21523 1.5 12 1.5C14.7848 1.5 17.4555 2.60625 19.4246 4.57538C21.3938 6.54451 22.5 9.21523 22.5 12C22.5 14.7848 21.3938 17.4555 19.4246 19.4246C17.4555 21.3938 14.7848 22.5 12 22.5C9.21523 22.5 6.54451 21.3938 4.57538 19.4246C2.60625 17.4555 1.5 14.7848 1.5 12ZM24 12C24 8.8174 22.7357 5.76516 20.4853 3.51472C18.2348 1.26428 15.1826 0 12 0C8.8174 0 5.76516 1.26428 3.51472 3.51472C1.26428 5.76516 0 8.8174 0 12C0 15.1826 1.26428 18.2348 3.51472 20.4853C5.76516 22.7357 8.8174 24 12 24C15.1826 24 18.2348 22.7357 20.4853 20.4853C22.7357 18.2348 24 15.1826 24 12ZM6.22031 11.4703L5.69063 12L6.22031 12.5297L10.7203 17.0297L11.25 17.5594L12.3094 16.5L11.7797 15.9703L8.55938 12.75H17.25H18V11.25H17.25H8.55938L11.7797 8.02969L12.3094 7.5L11.25 6.44062L10.7203 6.97031L6.22031 11.4703Z" fill="black"/>
</g>
<defs>
<clipPath id="clip0_14849_19005">
<rect width="24" height="24" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -0,0 +1,3 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M1.5 12C1.5 9.21523 2.60625 6.54451 4.57538 4.57538C6.54451 2.60625 9.21523 1.5 12 1.5C14.7848 1.5 17.4555 2.60625 19.4246 4.57538C21.3938 6.54451 22.5 9.21523 22.5 12C22.5 14.7848 21.3938 17.4555 19.4246 19.4246C17.4555 21.3938 14.7848 22.5 12 22.5C9.21523 22.5 6.54451 21.3938 4.57538 19.4246C2.60625 17.4555 1.5 14.7848 1.5 12ZM24 12C24 8.8174 22.7357 5.76516 20.4853 3.51472C18.2348 1.26428 15.1826 0 12 0C8.8174 0 5.76516 1.26428 3.51472 3.51472C1.26428 5.76516 0 8.8174 0 12C0 15.1826 1.26428 18.2348 3.51472 20.4853C5.76516 22.7357 8.8174 24 12 24C15.1826 24 18.2348 22.7357 20.4853 20.4853C22.7357 18.2348 24 15.1826 24 12ZM6.22031 11.4703L5.69063 12L6.22031 12.5297L10.7203 17.0297L11.25 17.5594L12.3094 16.5L11.7797 15.9703L8.55938 12.75H17.25H18V11.25H17.25H8.55938L11.7797 8.02969L12.3094 7.5L11.25 6.44062L10.7203 6.97031L6.22031 11.4703Z" fill="#00AE42"/>
</svg>

After

Width:  |  Height:  |  Size: 982 B

View File

@@ -0,0 +1,10 @@
<svg width="14" height="16" viewBox="0 0 14 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_4_36)">
<path d="M13.7688 7.45642C13.9156 7.60017 14 7.79392 14 8.00017C14 8.20642 13.9156 8.40017 13.7688 8.54392L8.26875 13.7939C7.96875 14.0814 7.49375 14.0689 7.20937 13.7689C6.925 13.4689 6.93437 12.9939 7.23437 12.7095L11.3781 8.75017H0.749999C0.334374 8.75017 -9.90004e-07 8.41579 -9.53674e-07 8.00017C-9.17334e-07 7.58454 0.334374 7.25017 0.749999 7.25017H11.3781L7.23125 3.29392C6.93125 3.00641 6.92188 2.53454 7.20625 2.23454C7.49063 1.93454 7.96563 1.92517 8.26563 2.20954L13.7656 7.45954L13.7688 7.45642Z" fill="white"/>
</g>
<defs>
<clipPath id="clip0_4_36">
<rect width="14" height="16" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 764 B

View File

@@ -0,0 +1,10 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_14849_19007)">
<path d="M22.5 12C22.5 14.7848 21.3938 17.4555 19.4246 19.4246C17.4555 21.3938 14.7848 22.5 12 22.5C9.21523 22.5 6.54451 21.3938 4.57538 19.4246C2.60625 17.4555 1.5 14.7848 1.5 12C1.5 9.21523 2.60625 6.54451 4.57538 4.57538C6.54451 2.60625 9.21523 1.5 12 1.5C14.7848 1.5 17.4555 2.60625 19.4246 4.57538C21.3938 6.54451 22.5 9.21523 22.5 12ZM-8.58275e-07 12C-1.13651e-06 15.1826 1.26428 18.2348 3.51472 20.4853C5.76515 22.7357 8.8174 24 12 24C15.1826 24 18.2348 22.7357 20.4853 20.4853C22.7357 18.2348 24 15.1826 24 12C24 8.8174 22.7357 5.76516 20.4853 3.51472C18.2348 1.26428 15.1826 1.13651e-06 12 8.58275e-07C8.8174 5.80044e-07 5.76516 1.26428 3.51472 3.51472C1.26428 5.76515 -5.80044e-07 8.8174 -8.58275e-07 12ZM17.7797 12.5297L18.3094 12L17.7797 11.4703L13.2797 6.97031L12.75 6.44063L11.6906 7.5L12.2203 8.02969L15.4406 11.25L6.75 11.25L6 11.25L6 12.75L6.75 12.75L15.4406 12.75L12.2203 15.9703L11.6906 16.5L12.75 17.5594L13.2797 17.0297L17.7797 12.5297Z" fill="black"/>
</g>
<defs>
<clipPath id="clip0_14849_19007">
<rect width="24" height="24" fill="white" transform="translate(24 24) rotate(-180)"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@@ -0,0 +1,3 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M22.5 12C22.5 14.7848 21.3938 17.4555 19.4246 19.4246C17.4555 21.3938 14.7848 22.5 12 22.5C9.21523 22.5 6.54451 21.3938 4.57538 19.4246C2.60625 17.4555 1.5 14.7848 1.5 12C1.5 9.21523 2.60625 6.54451 4.57538 4.57538C6.54451 2.60625 9.21523 1.5 12 1.5C14.7848 1.5 17.4555 2.60625 19.4246 4.57538C21.3938 6.54451 22.5 9.21523 22.5 12ZM0 12C-2.78235e-07 15.1826 1.26428 18.2348 3.51472 20.4853C5.76515 22.7357 8.8174 24 12 24C15.1826 24 18.2348 22.7357 20.4853 20.4853C22.7357 18.2348 24 15.1826 24 12C24 8.8174 22.7357 5.76516 20.4853 3.51472C18.2348 1.26428 15.1826 2.78235e-07 12 0C8.8174 -2.78231e-07 5.76516 1.26428 3.51472 3.51472C1.26428 5.76515 2.78231e-07 8.8174 0 12ZM17.7797 12.5297L18.3094 12L17.7797 11.4703L13.2797 6.97031L12.75 6.44063L11.6906 7.5L12.2203 8.02969L15.4406 11.25H6.75H6V12.75H6.75H15.4406L12.2203 15.9703L11.6906 16.5L12.75 17.5594L13.2797 17.0297L17.7797 12.5297Z" fill="#00AE42"/>
</svg>

After

Width:  |  Height:  |  Size: 1021 B

View File

@@ -0,0 +1,3 @@
<svg width="14" height="16" viewBox="0 0 14 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M6.64648 1.64698C6.84023 1.45323 7.15898 1.45323 7.35274 1.64698L12.3527 6.64698C12.5465 6.84073 12.5465 7.15948 12.3527 7.35323C12.159 7.54698 11.8402 7.54698 11.6465 7.35323L6.99961 2.70636L2.35273 7.35323C2.15898 7.54698 1.84023 7.54698 1.64648 7.35323C1.45273 7.15948 1.45273 6.84073 1.64648 6.64698L6.64648 1.64698ZM1.64648 12.647L6.64648 7.64698C6.84023 7.45323 7.15898 7.45323 7.35273 7.64698L12.3527 12.647C12.5465 12.8407 12.5465 13.1595 12.3527 13.3532C12.159 13.547 11.8402 13.547 11.6465 13.3532L6.99961 8.70636L2.35273 13.3532C2.15898 13.547 1.84023 13.547 1.64648 13.3532C1.45273 13.1595 1.45273 12.8407 1.64648 12.647Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 762 B

View File

@@ -0,0 +1,3 @@
<svg width="14" height="16" viewBox="0 0 14 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M7.35352 14.353C7.15977 14.5468 6.84102 14.5468 6.64727 14.353L1.64727 9.35303C1.45352 9.15928 1.45352 8.84053 1.64727 8.64678C1.84102 8.45303 2.15977 8.45303 2.35352 8.64678L7.00039 13.2937L11.6473 8.64678C11.841 8.45303 12.1598 8.45303 12.3535 8.64678C12.5473 8.84053 12.5473 9.15928 12.3535 9.35303L7.35352 14.353ZM12.3535 3.35303L7.35352 8.35303C7.15977 8.54678 6.84102 8.54678 6.64727 8.35303L1.64727 3.35303C1.45352 3.15928 1.45352 2.84053 1.64727 2.64678C1.84102 2.45303 2.15977 2.45303 2.35352 2.64678L7.00039 7.29365L11.6473 2.64678C11.841 2.45303 12.1598 2.45303 12.3535 2.64678C12.5473 2.84053 12.5473 3.15928 12.3535 3.35303Z" fill="#262E30"/>
</svg>

After

Width:  |  Height:  |  Size: 768 B