Added coffee pot as temporary logo and home background.

This commit is contained in:
Snowyfox 2022-05-06 09:57:17 -04:00
parent 1bf48d831b
commit 45cfbce6dd
43 changed files with 36 additions and 3 deletions

0
ClipboardApi.java Normal file → Executable file
View File

1
ComposeWindow.java Normal file → Executable file
View File

@ -159,6 +159,7 @@ ComposeWindow extends JFrame {
newComposition();
setContentPane(display);
setIconImage(primaire.getProgramIcon());
}
// - -%- -

0
ImageApi.java Normal file → Executable file
View File

0
ImageWindow.java Normal file → Executable file
View File

7
JKomasto.java Normal file → Executable file
View File

@ -47,6 +47,9 @@ JKomasto {
private MastodonApi
api;
private Image
programIcon;
// ---%-@-%---
public MastodonApi
@ -80,6 +83,9 @@ JKomasto {
public WindowUpdater
getWindowUpdater() { return windowUpdater; }
public Image
getProgramIcon() { return programIcon; }
// ---%-@-%---
public static void
@ -95,6 +101,7 @@ JKomasto {
{
api = new MastodonApi();
windowUpdater = new WindowUpdater(this);
programIcon = ImageApi.local("kettle");
timelineWindow = new TimelineWindow(this);
composeWindow = new ComposeWindow(this);

0
KDE_Dialog_Appear.wav Normal file → Executable file
View File

2
LoginWindow.java Normal file → Executable file
View File

@ -399,6 +399,8 @@ LoginWindow extends JFrame {
display.setPreferredSize(new Dimension(320, 280));
setContentPane(display);
pack();
setIconImage(primaire.getProgramIcon());
}
}

0
MastodonApi.java Normal file → Executable file
View File

1
NotificationsWindow.java Normal file → Executable file
View File

@ -205,6 +205,7 @@ NotificationsWindow extends JFrame {
setContentPane(display);
pack();
setIconImage(primaire.getProgramIcon());
setDefaultCloseOperation(DISPOSE_ON_CLOSE);
setVisible(true);
}

1
PostWindow.java Normal file → Executable file
View File

@ -332,6 +332,7 @@ PostWindow extends JFrame {
display = new PostComponent(this);
setContentPane(display);
setIconImage(primaire.getProgramIcon());
}
}

2
RepliesWindow.java Normal file → Executable file
View File

@ -168,6 +168,8 @@ RepliesWindow extends JFrame {
display = new RepliesComponent(this);
setContentPane(display);
setSize(384, 224);
setIconImage(primaire.getProgramIcon());
}
}

0
RequestListener.java Normal file → Executable file
View File

0
RichTextPane.java Normal file → Executable file
View File

0
RudimentaryHTMLParser.java Normal file → Executable file
View File

25
TimelineWindow.java Normal file → Executable file
View File

@ -368,6 +368,10 @@ implements ActionListener {
String f = type.toString().toLowerCase();
display.setBackgroundImage(ImageApi.local(f));
/*
* () Java's image renderer draws images with transparency
* darker than GIMP does. Overcompensate in lightening.
*/
display.repaint();
}
@ -673,6 +677,7 @@ implements ActionListener {
setContentPane(display);
setTimelineType(TimelineType.HOME);
setIconImage(primaire.getProgramIcon());
}
}
@ -747,9 +752,23 @@ implements
{
int w = getWidth(), h = getHeight();
g.clearRect(0, 0, w, h);
int h2 = h * 5 / 10, w2 = h2;
int x = w - w2, y = h - h2;
g.drawImage(backgroundImage, x, y, w2, h2, this);
if (backgroundImage != null)
{
int b = h * 5 / 10;
int iw = backgroundImage.getWidth(this);
int ih = backgroundImage.getHeight(this);
if (ih > iw) {
ih = ih * b / iw;
iw = b;
}
else {
iw = iw * b / ih;
ih = b;
}
int x = w - iw, y = h - ih;
g.drawImage(backgroundImage, x, y, iw, ih, this);
}
((java.awt.Graphics2D)g).setRenderingHint(
java.awt.RenderingHints.KEY_ANTIALIASING,

0
TwoToggleButton.java Normal file → Executable file
View File

0
WindowUpdater.java Normal file → Executable file
View File

BIN
graphics/Federated.xcf Normal file → Executable file

Binary file not shown.

0
graphics/Flags.xcf Normal file → Executable file
View File

BIN
graphics/Home.xcf Normal file

Binary file not shown.

0
graphics/Hourglass.xcf Normal file → Executable file
View File

BIN
graphics/Kettle.xcf Normal file

Binary file not shown.

0
graphics/boostToggled.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

0
graphics/boostUntoggled.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

0
graphics/button.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

0
graphics/disabledOverlay.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

0
graphics/favouriteToggled.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 353 B

After

Width:  |  Height:  |  Size: 353 B

0
graphics/favouriteUntoggled.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

BIN
graphics/federated.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 19 KiB

BIN
graphics/home.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
graphics/kettle.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

0
graphics/miscToggled.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

0
graphics/miscUntoggled.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

0
graphics/ref1.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

0
graphics/replyToggled.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

0
graphics/replyUntoggled.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

0
graphics/selectedOverlay.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 313 B

After

Width:  |  Height:  |  Size: 313 B

0
graphics/test1.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

0
graphics/test2.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

0
graphics/test3.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

0
graphics/test4.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

0
notifOptions.txt Normal file → Executable file
View File

0
notifOptions.txt~ Normal file → Executable file
View File