remove 200% icon scaling (#7003)
Some checks are pending
main-build / build-merged (push) Waiting to run
main-build / auto-tag (push) Waiting to run
main-build / auto-tag-artifact (push) Blocked by required conditions
main-build / coverage (push) Waiting to run

This commit is contained in:
Lars Hvam 2024-08-05 18:08:54 +02:00 committed by GitHub
parent 82bed9224c
commit 0d6d999e62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 12 deletions

View File

@ -138,8 +138,6 @@ CLASS ZCL_ABAPGIT_HTML IMPLEMENTATION.
lv_name TYPE string,
lv_color TYPE string,
lv_class TYPE string,
lv_large_icon TYPE string,
lv_xpixel TYPE i,
lv_onclick TYPE string.
SPLIT iv_name AT '/' INTO lv_name lv_color.
@ -157,15 +155,7 @@ CLASS ZCL_ABAPGIT_HTML IMPLEMENTATION.
lv_color = | { lv_color }|.
ENDIF.
" Automatic icon scaling (could be overwritten by personal setting)
" see zcl_abapgit_gui_page->html_head
lv_xpixel = cl_gui_cfw=>compute_pixel_from_metric( x_or_y = 'X'
in = 1 ).
IF lv_xpixel >= 2.
lv_large_icon = ' large'.
ENDIF.
rv_str = |<i class="icon{ lv_large_icon } icon-{ lv_name }{ lv_color }|.
rv_str = |<i class="icon icon-{ lv_name }{ lv_color }|.
rv_str = |{ rv_str }{ lv_class }"{ lv_onclick }{ lv_hint }></i>|.
ENDMETHOD.

View File

@ -146,7 +146,7 @@ CLASS zcl_abapgit_gui_page_sett_pers IMPLEMENTATION.
iv_label = 'Icon Scaling (HDPI)'
iv_hint = 'Adjust size of icons for High DPI displays'
)->option(
iv_label = 'Automatic'
iv_label = 'No scaling'
iv_value = ''
)->option(
iv_label = 'Small'