Skip to content

Commit

Permalink
make slight changes to app sizes and email authors for cleaner UX
Browse files Browse the repository at this point in the history
  • Loading branch information
einaskoi committed May 19, 2026
1 parent dbe6664 commit 6526637
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 23 deletions.
21 changes: 1 addition & 20 deletions src/main/java/edu/ntnu/idi/idatt2003/gruppe42/model/News.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,7 @@ public News(String company, int trend) {
*/
public String generateAuthor() {
List<String> authors = new ArrayList<>();
authors.add("market@stocks.com");
authors.add("myfatherworksatmicrosoft@hotmail.com");
authors.add("definitely.obama@whitehouse.gov");
authors.add("bigfoot.financial@yeti.net");
authors.add("notaciaagent@cia.gov");
authors.add("iamyourfather@deathstar.empire");
authors.add("shakespeareswifi@globe.theatre");
authors.add("dinosaur.investor@jurassic.park");
authors.add("flat.earth.stonks@edgeoftheworld.com");
authors.add("timtraveler2089@yahoo.com");
authors.add("schroedingers.portfolio@maybe.com");
authors.add("elon@mymusk.biz");
authors.add("god@heaven.org");
authors.add("santaclaus@northpole.gifts");
authors.add("area51.leaks@ufo.gov");
authors.add("theguywhosneezedonthestockmarket@2008crash.com");
authors.add("nephew.of.warren.buffet@gmail.com");
authors.add("batman@notbruce.wayne");
authors.add("mycatinvestedmysavings@meow.finance");
authors.add("nsa.definitely.not.reading.this@nsa.gov");
authors.add("market@news.com");
return authors.get(random.nextInt(authors.size()));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class BankApp extends Popup {
* <p>Initializes the portfolio list view and builds the UI layout.
*/
public BankApp() {
super(600, 550, 220, 100, App.BANK);
super(550, 500, 220, 100, App.BANK);

portfolioList = new ListView<>();
portfolioList.setSelectionModel(null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class MailApp extends Popup {
* @param controller the controller managing mail data
*/
public MailApp(MailController controller) {
super(450, 600, 140, 140, App.MAIL);
super(400, 550, 140, 140, App.MAIL);
this.controller = controller;
this.mailList = new VBox(10);
buildContent();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class StockApp extends Popup {
* @param player the current player, used for portfolio context and receipt calculations
*/
public StockApp(final Player player) {
super(500, 450, 140, 140, App.STOCK);
super(475, 450, 140, 140, App.STOCK);

this.searchField = new TextField();
this.searchField.setPromptText("Search stocks...");
Expand Down

0 comments on commit 6526637

Please sign in to comment.