[Release] FBI Theme Previewer

Discussion in '3DS - Homebrew Development and Emulators' started by jurassicplayer, Jan 5, 2017.

?

Does senpai notice me?

  1. Yes

  2. No

  3. What's a senpai?

Results are only viewable after voting.
  1. jurassicplayer
    OP

    jurassicplayer Completionist Themer

    Member
    4,362
    508
    Mar 7, 2009
    United States
    Pantsuland
    So, there was literally like two or three people that made themes for FBI and a derp that made a tutorial along the lines of "grab the files from the repo, replace them, put here". And all of that was worthless because that doesn't do much for me.

    Instead, I decided to fill the hole with my shit tier theme previewer that utilizes...PYTHON \o/. Isn't that great? Another python application that everyone can almost use. Anyways, it's nowhere near good enough to actually be a previewer yet, but I thought I would share it now because I'm going to sleep.

    Read the readme. There's an exe included too, for the derps that want to cling to some faint hope.
    https://github.com/jurassicplayer/FBIThemePreviewer
    Newer Screenshots:

    - Edit -
    I swear if you people use this to make some godawful FBI theme, so help me, I will hunt you down and beat you to death with a stuffed teddy bear.
     
    Last edited by jurassicplayer, Jan 23, 2017
    Garblant, Gocario, Lemmingz and 15 others like this.
  2. x65943

    x65943 Resident Greekaboo, Amateur Dog Father

    Member
    2,602
    2,241
    Jun 23, 2014
    United States
    Indiana
    Who knew the next big thing in 3ds homebrew was custom fbi themes.
     
  3. MartyDreamy

    MartyDreamy Merry Witch-Mas to Everyone <3

    Member
    931
    1,715
    Jul 1, 2015
    Italy
    ZagToon Studios
    Ohoh! This is amazing :D
     
    Darkyose likes this.
  4. rikumax25!

    rikumax25! Keyblade Wielder

    Member
    1,417
    511
    Apr 21, 2016
    Costa Rica
    [​IMG]
    Anyone?
     
  5. Flame

    Flame Me > You

    Member
    GBAtemp Patron
    Flame is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    3,938
    5,291
    Jul 15, 2008
    i was thinking the same thing, when did this happen?
     
    x65943 likes this.
  6. Favna

    Favna #PCMasterRace

    Member
    810
    394
    Sep 12, 2009
    Netherlands
    Can I keep the stuffed teddybear in heaven? if so I say brb making hentai themes
     
  7. x65943

    x65943 Resident Greekaboo, Amateur Dog Father

    Member
    2,602
    2,241
    Jun 23, 2014
    United States
    Indiana
  8. BL4Z3D247

    BL4Z3D247 GBAtemp Stoner

    Member
    1,699
    417
    Oct 22, 2008
    United States
    I'm so high, I don't even know!
    This one seems perfect.
    Warning: Spoilers inside!
     
    Last edited by BL4Z3D247, Jan 5, 2017
    Quantumcat and petethepug like this.
  9. erman1337

    erman1337 GBAtemp Maniac

    Member
    1,211
    932
    Sep 27, 2015
    Belgium
    Brussels
    hmm

    [​IMG]
     
    Last edited by erman1337, Jan 5, 2017
  10. x65943

    x65943 Resident Greekaboo, Amateur Dog Father

    Member
    2,602
    2,241
    Jun 23, 2014
    United States
    Indiana
    Okay, we should stop spamming huge images on this thread now.
     
    blujay likes this.
  11. jurassicplayer
    OP

    jurassicplayer Completionist Themer

    Member
    4,362
    508
    Mar 7, 2009
    United States
    Pantsuland
    That's part of the "read/write to text color.cfg" bit on the readme under "shit I'll get to eventually". Also, you should be able to change the text colors in the script (I think most of them anyways) with configuration => text.color or something. Supposedly can't do opacity with tkinter though.
     
  12. TheVinAnator

    TheVinAnator GBATemp's Greatest Vin

    Member
    3,617
    2,700
    Jan 10, 2016
    Canada
    NO COFFEI!
    Awesome! Will use!
     
  13. Polarise

    Polarise GBAtemp Advanced Fan

    Member
    796
    98
    Jul 12, 2016
    United States
    Bumping so I could see this when I get home on my computer. Cool idea!
     
  14. jurassicplayer
    OP

    jurassicplayer Completionist Themer

    Member
    4,362
    508
    Mar 7, 2009
    United States
    Pantsuland
    So I updated the previewer a little more. More buttons work. More buttons are there (well one). More things aren't bad. More things are bad.

    Now you can preview your progress bar, though now it requires Pillow (if you don't know what it is, then you can just look at the exe and hope that has it included because I honestly have no idea). It only "animates" the generic percentages "0%, 25%, 50%, 75%, 100%".

    There is also the Meta Info screen that has fake metadata, but you can check all of your textcolors on that screen (no, I haven't gotten textcolor.cfg reading yet, so you still need to type your stuff into the .py script to see that sort of thing). Since I was being extra fancy, the Configuration class also has some simple theme configs that show up as the meta info (theme title, theme desc, theme author, theme version) which I might leave somewhere so people can have something to look at that I didn't use pseudo-random on.

    Almost everything can be previewed now at least (just the buttons left). There is a new Refresh button. Previously I was just magically reloading literally every image every second, which is totally a bad idea, hence why I decided I'll just leave the reloading up to manual mouse click...but maybe I'll make it a toggleable option or something if the Pillow things don't completely ruin things and make it hang for literally just cropping the same image a couple times.

    Thought I'd also mention, but this isn't supposed to be or probably is ever going to be a 1:1 pixel perfect replica of how FBI is going to look. For one, I just picked a random font that looked alright, and two tkinter also has it's own derpy limitations (no alpha for text).
     
  15. jurassicplayer
    OP

    jurassicplayer Completionist Themer

    Member
    4,362
    508
    Mar 7, 2009
    United States
    Pantsuland
    Updated the previewer for more fanciness. The selection bar overlay can now move to follow the mouse on mouse press. Right clicking on one of the lines in the Meta Info screen will bring up the color picker for that entry (ex. Right clicking the "NAND" text line will bring up a color picker to change that text color).

    Unfortunately still no writing to textcolor.cfg yet, but it can now read from the cfg along with a new config file for the actual program (just for themer's convenience). The config file makes the exe about equal to the .py script (since the config has the theme_folder).

    In terms of actual previewing, there is only the buttons screen left, but everything else can provide a decent idea of what the theme would look like. Text color transparency and the font can't be fixed at all though using Tkinter, which means those probably will never get fixed.

    I'm also considering looking at python-watchdog which supposedly can watch the filesystem for file changes and then I can just auto-update specific files that get changed rather than everything.

    [​IMG]

    - Edit -
    Stop-gap solution for not having the hex colors:
    [​IMG]
     
    Last edited by jurassicplayer, Jan 7, 2017
    Polarise and tiduscrying like this.
  16. Favna

    Favna #PCMasterRace

    Member
    810
    394
    Sep 12, 2009
    Netherlands
    I slightly modified the theme from @stewartisme by including the white icons from @chaoskagami as well as adding the 2 lines for "ticketinuse" and "ticketnotinuse" to the cfg file since they were missing and otherwise "tickets" is just all blank due to default "00" hex for Alpha channel. Preview on 3DS in spoiler below due to large image collection.

    Preview images
     

    Attached Files:

    chaoskagami likes this.
  17. JVF

    JVF Member

    Newcomer
    23
    13
    Sep 16, 2016
    Thanks, but when I go to the TitleDB mode I can't see anything in the bottom screen, the titles in the bottom screen are black instead of being red and green.
     
  18. Favna

    Favna #PCMasterRace

    Member
    810
    394
    Sep 12, 2009
    Netherlands
    Hm yeah correct. The cfg file was still missing the "installed" and "notinstalled" lines. Copy this into the cfg file or redownload. Attachment below is updated, attachment above is also updated to prevent old-version-downloads

    Code:
    text=FFFFFFFF
    nand=FF0000FF
    sd=FF00FF00
    gamecard=FFFF0000
    dstitle=FFDC00E6
    file=FFFFFFFF
    directory=FF0000FF
    enabled=FF00FF00
    disabled=FF0000FF
    installed=FF00FF00
    notinstalled=FF0000FF
    ticketinuse=FF75F875
    ticketnotinuse=FF0000FF
    
    Note: If you download only the txt file make sure to change the extension back to .cfg upon downloading!!!!
     

    Attached Files:

    Last edited by Favna, Jan 7, 2017
    JVF likes this.
  19. jurassicplayer
    OP

    jurassicplayer Completionist Themer

    Member
    4,362
    508
    Mar 7, 2009
    United States
    Pantsuland
    Updated the previewer again. It can now save to textcolor.cfg and will do so right after color editing, so try not to misclick and lose a previously picked color. I also made the hex codes actually useful since the text color format is actually ABGR, so the Meta Info screen shows them in #BGR format.

    Most of the main functionality is now there (aside from the button buttons), so in theory it should be a decent enough preview of what your theme is going to look like and you can easily change things.

    So my plan is to add the button preview, then possibly how to add in watchdog (for all of the magical reloading on file change), and finally maybe a UI revamp to something that isn't quite as hideous as what I have.

    [​IMG]
     
  20. jurassicplayer
    OP

    jurassicplayer Completionist Themer

    Member
    4,362
    508
    Mar 7, 2009
    United States
    Pantsuland
    Updated the previewer. Automatic image reloading is now a thing. Also consolidated the buttons into two as of right now. One is the main "preview" which is sort of like an interactive FBI (right click goes one screen deep and then returns to the main screen) and the other is the same old text color editor.
    The small button previews are under CTR NAND and TWL NAND, large button preview is under Update, and the progress bar is under Remote Install. SD gives an example of the file and directory colors and the rest are currently not implemented yet.

    There is also some minor error handling and I made a demo reel to show what I mean.