Skip to content

Instantly share code, notes, and snippets.

@OmarNamis
Created July 16, 2021 13:03
Show Gist options
  • Save OmarNamis/cbf0378e0e2d8290922615b3a9811ee0 to your computer and use it in GitHub Desktop.
Save OmarNamis/cbf0378e0e2d8290922615b3a9811ee0 to your computer and use it in GitHub Desktop.
Dark Gray theme for Ditto Clipboard
<Ditto_Theme_File Version = "3" Author = "Omar Namis" Notes = "https://github.com/OmarNamis">
<CaptionLeft>RGB(25, 25, 25)</CaptionLeft>
<CaptionRight>RGB(25, 25, 25)</CaptionRight>
<CaptionLeftTopMost>RGB(25, 25, 25)</CaptionLeftTopMost>
<CaptionRightTopMost>RGB(25, 25, 25)</CaptionRightTopMost>
<CaptionLeftNotConnected>RGB(255, 255, 0)</CaptionLeftNotConnected>
<CaptionRightNotConnected>RGB(218, 255, 127)</CaptionRightNotConnected>
<CaptionTextColor>RGB(251, 251, 254)</CaptionTextColor>
<ListBoxOddRowsBG>RGB(48, 48, 48)</ListBoxOddRowsBG>
<ListBoxEvenRowsBG>RGB(32, 32, 32)</ListBoxEvenRowsBG>
<ListBoxOddRowsText>RGB(180, 192, 185)</ListBoxOddRowsText>
<ListBoxEvenRowsText>RGB(180, 192, 185)</ListBoxEvenRowsText>
<ListBoxSelectedBG>RGB(79, 79, 79)</ListBoxSelectedBG>
<ListBoxSelectedNoFocusBG>RGB(79, 79, 79)</ListBoxSelectedNoFocusBG>
<ListBoxSelectedText>RGB(251, 251, 254)</ListBoxSelectedText>
<ListBoxSelectedNoFocusText>RGB(251, 251, 254)</ListBoxSelectedNoFocusText>
<Border>RGB(25, 25, 25)</Border>
<BorderTopMost>RGB(25, 25, 25)</BorderTopMost>
<BorderNotConnected>RGB(255, 0, 0)</BorderNotConnected>
<GroupTreeBG>RGB(25, 25, 25)</GroupTreeBG>
<GroupTreeText>RGB(153, 153, 153)</GroupTreeText>
<CaptionSize></CaptionSize>
<CaptionFontSize></CaptionFontSize>
<DescriptionWindowBG>RGB(30, 30, 30)</DescriptionWindowBG>
<DescriptionWindowText>RGB(180, 192, 185)</DescriptionWindowText>
<MainWindowBG>RGB(25, 25, 25)</MainWindowBG>
<ClipPastedColor>RGB(25, 100, 230)</ClipPastedColor>
<SearchTextBoxFocusBG>RGB(24, 24, 24)</SearchTextBoxFocusBG>
<SearchTextBoxFocusText>RGB(127, 127, 127)</SearchTextBoxFocusText>
<SearchTextBoxFocusBorder>RGB(79, 79, 79)</SearchTextBoxFocusBorder>
<SearchTextHighlight>RGB(25, 100, 230)</SearchTextHighlight>
</Ditto_Theme_File>
@OmarNamis
Copy link
Author

Screenshot:
Screenshot

@Dhyfer1
Copy link

Dhyfer1 commented Aug 16, 2021

Hi Omar.

Thank you for your help here, now I have a new problem. A few days ago a new beta version of Ditto was released (3.24.210.0) but in my case the language change does not work and my custom themes (including your theme) do not appear in the program settings.

I have created this new issue where you can see the behavior of Ditto when I try to change the language, or from one theme to another, but I always get the same error message. Is Ditto working well for you?

@Dhyfer1
Copy link

Dhyfer1 commented Aug 19, 2021

Hi again Omar.

Once again, thanks for your help. Now the beta version has been updated again and with the latest version I can still have an emoji in the path of the executable file, this is good news for me.

Hey, when I look at the xml file of your theme I see that you followed some lines of code present in the Theme.cpp file and the built-in themes do not follow some lines that are in your theme and in my theme. I also did the same thing when I created my Dracula theme, and I know what changes in Ditto when I modify the RGB value of a particular line of code, but there is one particular line in which I have changed its RGB value several times but so far I have not noticed any change in Ditto, and it is the line of code listSmallQuickPasteIndexColor

Do you have any idea what that line modifies?

@OmarNamis
Copy link
Author

OmarNamis commented Aug 19, 2021

You're very welcome, I'm glad the issue is now fixed!

Do you have any idea what that line modifies?

Hmm, I'm not exactly sure, but it was probably planned to be used for changing the color of an indicator on clips that have a "Quick Paste" property, which most likely was not implemented.

This is just a guess, as I've noticed that the function "LoadColor" is called for all keys except listSmallQuickPasteIndexColor.

Hey @sabrogden. can you please confirm?

@Dhyfer1
Copy link

Dhyfer1 commented Aug 19, 2021

Hmm, I'm not exactly sure, but it was probably planned to be used for changing the color of an indicator on clips that have a "Quick Paste" property, which is most likely was not implemented.

This is just a guess, as I've noticed that the function "LoadColor" is called for all keys except listSmallQuickPasteIndexColor.

Hmmm. Do you mean this?

image

I am not sure either, but I think listSmallQuickPasteIndexColor modifies the color of the numbers that are in each clip, and it is the only element that remains to be customized.

Definition of index: Alphabetically arranged list of items (such as names or terms) given at the end of a printed text with page numbers on which the item can be found. ->that's why I think it modifies the color of those numbers

@sabrogden Please, can you tell us what modification does listSmallQuickPasteIndexColor make when customizing a theme in Ditto?

@OmarNamis
Copy link
Author

Actually, I think that might be it!

I confused it with the "Quick Paste Text" field in clips properties.

@Dhyfer1
Copy link

Dhyfer1 commented Aug 19, 2021

This is just a guess, as I've noticed that the function "LoadColor" is called for all keys except listSmallQuickPasteIndexColor.

I hadn't noticed, you're right, LoadColor works for all the other keys, except for listSmallQuickPasteIndexColor I'm sure it has to be related to what I said before, with those little numbers.

Also, listSmallQuickPasteIndexColor has the RGB value (180, 180, 180), this value never changes when changing the theme and I discovered that this value is not only the color of the numbers I mentioned, it is also the same color for the thin vertical line that separates the numbers from the clips.

With the help of Instant Eyedropper I know that the RGB value of the pixels in those numbers is (180, 180, 180), the same RGB value indicated in listSmallQuickPasteIndexColor

image

So, according to the above, I'm sure that if this line of code:
LoadColor(ItemHeader, "listSmallQuickPasteIndexColor", m_listSmallQuickPasteIndexColor);
would have been added to Theme.cpp, then we could change the color of the small numbers and the thin vertical line next to them.

@sabrogden
Copy link

yes listSmallQuickPasteIndexColor is the color of the small number on the first 10 rows.

@Dhyfer1
Copy link

Dhyfer1 commented Aug 19, 2021

yes listSmallQuickPasteIndexColor is the color of the small number on the first 10 rows.

Thank you very much for your answer. So I got my guess right. Hey, why listSmallQuickPasteIndexColor is not available for customization? Because I would like to change its color, but for now it doesn't work after creating a new theme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment