*/}}
Pārlūkot izejas kodu

Add included profiles

YimingWu 2 dienas atpakaļ
vecāks
revīzija
9f1c39c6bb

+ 3 - 0
CMakeLists.txt

@@ -97,6 +97,8 @@ target_link_libraries(OurPaint
 SET(INSTALL_EXTRAS
     README.md default_brushes.udf default_pallettes.udf COPYING COPYING_CC_BY_NC)
 
+FILE(GLOB INSTALL_PROFILES profiles/*)
+
 SET(LAGUI_FONT_CUSTOM_PATH  $ENV{HOME}/.local/share/fonts/lagui CACHE STRING "Where to find lagui fonts")
 
 if (NOT DEFINED ${LAGUI_FONT_CUSTOM_PATH})
@@ -122,3 +124,4 @@ install(RUNTIME_DEPENDENCY_SET runtime_deps
 endif()
 install(DIRECTORY "${LAGUI_FONT_CUSTOM_PATH}/" DESTINATION ${INSTALL_PATH_BIN}/fonts PATTERN "*.*")
 install(FILES ${INSTALL_EXTRAS} DESTINATION ${INSTALL_PATH_BIN})
+install(FILES ${INSTALL_PROFILES} DESTINATION ${INSTALL_PATH_BIN}/profiles)

+ 5 - 0
ouroperations.c

@@ -206,6 +206,11 @@ void our_InitColorProfiles(){
     manu="ClayRGB chromaticities as given in Adobe RGB (1998) Color Image Encoding, Version 2005-05, https://www.adobe.com/digitalimag/pdfs/AdobeRGB1998.pdf";
     our_InitRGBProfile(1,&d65_p3_primaries_prequantized,&Our->icc_LinearD65P3,&Our->iccsize_LinearD65P3,"Copyright Yiming 2022.",manu,"Yiming's Linear D65 P3 icc profile.");
     our_InitRGBProfile(0,&d65_p3_primaries_prequantized,&Our->icc_D65P3,&Our->iccsize_D65P3,"Copyright Yiming 2022.",manu,"Yiming's D65 P3 icc profile.");
+
+    if(!MAIN.ProofingLUTs.pFirst){
+        laLoadProofingICC("profiles/ISOcoated_v2_300_bas.icc");
+        laLoadProofingICC("profiles/GenericCMYK.icm");
+    }
 }
 
 void ourui_NotesPanel(laUiList *uil, laPropPack *This, laPropPack *DetachedProps, laColumn *UNUSED, int context){

BIN
profiles/GenericCMYK.icm


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 29 - 0
profiles/GenericCMYK.txt


BIN
profiles/ISOcoated_v2_300_bas.icc


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 29 - 0
profiles/ISOcoated_v2_300_bas.txt


Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels