feat(context_menu_manager): add icons to context menu
This commit is contained in:
1
portprotonqt/themes/standart/images/icons/delete.svg
Normal file
1
portprotonqt/themes/standart/images/icons/delete.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg width="16" height="16" version="1.1" viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path d="m5.48 11.5 2.52-2.52 2.52 2.52 0.98-0.98-2.52-2.52 2.52-2.52-0.98-0.98-2.52 2.52-2.52-2.52-0.98 0.98 2.52 2.52-2.52 2.52zm2.52 3.5q-1.4525 0-2.73-0.55125t-2.2225-1.4962-1.4962-2.2225-0.55125-2.73 0.55125-2.73 1.4962-2.2225 2.2225-1.4962 2.73-0.55125 2.73 0.55125 2.2225 1.4962 1.4962 2.2225 0.55125 2.73-0.55125 2.73-1.4962 2.2225-2.2225 1.4962-2.73 0.55125zm0-1.4q2.345 0 3.9725-1.6275t1.6275-3.9725-1.6275-3.9725-3.9725-1.6275-3.9725 1.6275-1.6275 3.9725 1.6275 3.9725 3.9725 1.6275z" fill="#fff"/></svg>
|
After Width: | Height: | Size: 634 B |
1
portprotonqt/themes/standart/images/icons/edit.svg
Normal file
1
portprotonqt/themes/standart/images/icons/edit.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg width="16" height="16" version="1.1" viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path d="m4.0723 1c-1.6982 0-3.0801 1.3818-3.0801 3.0801v7.8398c0 1.6982 1.3818 3.0801 3.0801 3.0801h7.8398c1.6982 0 3.0801-1.3818 3.0801-3.0801v-7.8398l-0.93359 0.93359v6.9063c0 1.1973-0.94916 2.1465-2.1465 2.1465h-7.8398c-1.1973 0-2.1465-0.94916-2.1465-2.1465v-7.8398c0-1.1973 0.94916-2.1465 2.1465-2.1465h7.0938l0.85547-0.85352 0.0078-0.00781c0.02511-0.02302 0.04987-0.044899 0.07617-0.066406-0.064467-0.0040524-0.12786-0.0058621-0.19334-0.0058621zm9.1211 0.042969c-0.14335 0-0.28025 0.028276-0.41016 0.082031-0.12991 0.053755-0.24991 0.12997-0.35742 0.22852l-7.0937 7.082v2.2832h2.2832l7.082-7.082c0.10751-0.10751 0.18705-0.22556 0.23633-0.35547 0.04927-0.12991 0.07422-0.26681 0.07422-0.41016 0-0.13439-0.02495-0.26796-0.07422-0.40234-0.049276-0.13439-0.12882-0.25106-0.23633-0.34961l-0.73828-0.75391c-0.09855-0.10751-0.21522-0.18648-0.34961-0.24023-0.13439-0.053755-0.27267-0.082031-0.41602-0.082031zm-1.5332 2.5801 0.37695 0.39062 0.38867 0.37695-5.2539 5.2539h-0.76562v-0.76562z" fill="#fff" fill-rule="evenodd" stop-color="#000000" stroke-width=".93333"/></svg>
|
After Width: | Height: | Size: 1.2 KiB |
1
portprotonqt/themes/standart/images/icons/menu.svg
Normal file
1
portprotonqt/themes/standart/images/icons/menu.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg width="16" height="16" version="1.1" viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path d="m1 1.75v2h3.5v-2zm5.25 0v2h8.75v-2zm-5.25 5.25v2h3.5v-2zm5.25 0v2h8.75v-2zm-5.25 5.25v2h3.5v-2zm5.25 0v2h8.75v-2z" fill="#fff" stroke-width=".75593"/></svg>
|
After Width: | Height: | Size: 284 B |
1
portprotonqt/themes/standart/images/icons/star.svg
Normal file
1
portprotonqt/themes/standart/images/icons/star.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg width="16" height="16" version="1.1" viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path d="M 5.795,11.7275 8,10.3975 10.205,11.745 9.6275,9.225 11.57,7.545 9.015,7.3175 8,4.9375 6.985,7.3 4.43,7.5275 6.3725,9.225 Z M 3.6775,14.65 4.815,9.7325 1,6.425 6.04,5.9875 8,1.35 9.96,5.9875 15,6.425 11.185,9.7325 12.3225,14.65 8,12.0425 Z M 8,8.525 Z" fill="#fff" stroke-width=".0175"/></svg>
|
After Width: | Height: | Size: 421 B |
1
portprotonqt/themes/standart/images/icons/star_full.svg
Normal file
1
portprotonqt/themes/standart/images/icons/star_full.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg width="16" height="16" version="1.1" viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path d="m8 1.3496-1.9609 4.6387-5.0391 0.4375 3.8145 3.3066-1.1367 4.918 4.3223-2.6074 4.3223 2.6074-1.1367-4.918 3.8145-3.3066-5.0391-0.4375z" fill="#fff" stroke-width=".0175"/></svg>
|
After Width: | Height: | Size: 304 B |
@ -104,8 +104,11 @@ CONTEXT_MENU_STYLE = f"""
|
||||
font-size: {font_size_a};
|
||||
padding: 5px;
|
||||
}}
|
||||
QMenu::icon {{
|
||||
margin-left: 15px;
|
||||
}}
|
||||
QMenu::item {{
|
||||
padding: 8px 20px;
|
||||
padding: 8px 20px 8px 10px;
|
||||
background: {color_h};
|
||||
border-radius: {border_radius_a};
|
||||
color: {color_f};
|
||||
|
Reference in New Issue
Block a user